[Mesa-dev] [RFC] ralloc: use jemalloc for faster GLSL compilation

0xe2.0x9a.0x9b at gmail.com
Sun Oct 2 14:03:27 UTC 2016


Hello Marek

instead of utilizing jemalloc, I strongly recommend you take a look (for
example) at:

   - classes such as ir_copy_propagation_elements_visitor
   - file glcpp-parse.y

and to put optimizations and better algorithms in there.

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.

Instructions:

   1. Compile and install Mesa with -O0 -g in CFLAGS and CXXFLAGS
   2. If needed, adjust LD_LIBRARY_PATH and LIBGL_DRIVERS_PATH
   3. $ valgrind --tool=callgrind --instr-atstart=no --trace-children=yes
   AlienIsolation
   4. In the game: proceed to the point where Alien Isolation starts
   compiling the shaders
   5. $ callgrind_control -i on
   6. Run "callgrind_control --dump" several times
   7. $ kcachegrind callgrind.out...

Sincerely
Jan (http://atom-symbol.net)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161002/507f509f/attachment.html>


More information about the mesa-dev mailing list