Show Your Support: This site is primarily supported by advertisements. Ads are what have allowed this site to be maintained on a daily basis for the past 18+ years. We do our best to ensure only clean, relevant ads are shown, when any nasty ads are detected, we work to remove them ASAP. If you would like to view the site without ads while still supporting our work, please consider our ad-free Phoronix Premium.
Mesa Looks At Switching To Jemalloc For Faster Performance
Jemalloc is a memory allocator designed to be very scalable and is notably used within Firefox, FreeBSD, and many other deployments elsewhere -- including at Facebook. Marek realized that the time of compiling shaders from GLSL to GCN bytecode could be reduced by about 10% if switching from using glibc to jemalloc for memory allocations. Those wishing to learn more about jemalloc can see the GitHub page.
With being ~10% quicker for GLSL compilation, Marek is looking at potentially redirecting all of the memory allocation calls to using jemalloc. The RFC patch for introducing jemalloc in Mesa can be found via the Mesa-dev mailing list.