[RFC PATCH 00/11] Thread-local heap implementation.

Dmitry Timoshkov dmitry at baikal.ru
Wed May 6 07:38:51 CDT 2020


Rémi Bernon <rbernon at codeweavers.com> wrote:

> This is a heap implementation based on thread-local structures, that I
> have been keeping locally for quite some time. The goal was to improve
> Wine's heap performance in multithreaded scenarios and see if it could
> help performance in some games.
> 
> The good news is that this implementation is performing well, according
> to third-party heap micro benchmarks. The bad news is that it doesn't
> change performance much in general, as allocations are usually scarse
> during gameplay. I could still see improvements for loading times, and
> less stalling as well.

Have you looked at the Sebastian's heap improvements patches in the staging
tree? According to Sebastian's and Michael's testing "The new heap allocator
uses (inspired by the way how it works on Windows) various fixed-size free
lists, and a tree data structure for large elements. With this implementation,
I get up to [b]60%[/b] improvement for apps with the "bad allocation pattern",
and up to [b]15%[/b] improvement in the "good case"."

-- 
Dmitry.



More information about the wine-devel mailing list