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