From 7f0d22e5dc640b4ba4b4845560c91bc0a5653e36 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Sun, 28 Jul 2024 12:33:40 +0300 Subject: [PATCH] rodata-lookup-caching: fix grammar --- articles/rodata-lookup-caching/page.mmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/articles/rodata-lookup-caching/page.mmd b/articles/rodata-lookup-caching/page.mmd index 16d7e60..bdaedf0 100644 --- a/articles/rodata-lookup-caching/page.mmd +++ b/articles/rodata-lookup-caching/page.mmd @@ -7,8 +7,8 @@ CSS: /style.css While working on our immediate no-state engine, the need for texture lookup optimization arose. API is designed in a way where every single pushed triangle means resolution of texture by path. -My insane mind came to such optimization then: detect is given path pointer is in .rodata and if so, - -just lookup by hash of the pointer, not whole varying-size string. Constant time and all that. +My insane mind came to such optimization then: detect whether given path pointer is in .rodata and if so, - +just lookup by hash of the pointer itself, not whole varying-size string. Constant time and all that. For that I ended up writing a limited ELF parsing routine that expects `/proc/self/exe`. Virtual address space randomization was tricky until I realized that