<div dir="ltr">Hello Marek<div><br></div><div>instead of utilizing jemalloc, I strongly recommend you take a look (for example) at:</div><div><ul><li>classes such as ir_copy_propagation_elements_visitor</li><li>file glcpp-parse.y</li></ul></div><div>and to put optimizations and better algorithms in there.<br></div><div><br></div><div>Eliminating the causes of malloc-like calls will result in 2x faster shader compilation in the case of Alien Isolation - instead of the 1.1x speedup you achieved with jemalloc.</div><div><br></div><div>Instructions:</div><div><ol><li>Compile and install Mesa with -O0 -g in CFLAGS and CXXFLAGS</li><li>If needed, adjust LD_LIBRARY_PATH and LIBGL_DRIVERS_PATH</li><li>$ valgrind --tool=callgrind --instr-atstart=no --trace-children=yes AlienIsolation<br></li><li>In the game: proceed to the point where Alien Isolation starts compiling the shaders</li><li>$ callgrind_control -i on</li><li>Run "callgrind_control --dump" several times</li><li>$ kcachegrind callgrind.out...</li></ol><div>Sincerely<br></div></div><div>Jan (<a href="http://atom-symbol.net">http://atom-symbol.net</a>)</div></div>