[PATCH] D71786: RFC: [Support] On Windows, add optional support for rpmalloc

Mattias Jansson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 11 04:08:45 PST 2020


maniccoder added a comment.

I think you will find that the Heap API has subpar performance since that too uses locks to ensure thread safety (unless you can guarantee that memory blocks never traverses thread boundaries).

Also, even though glibc now has thread caches I suspect that you will find the rpmalloc/mimalloc/tcmalloc provides a decent performance increase, maybe not an order of magnitude but still noticeable.

I think the main benefit of rpmalloc is that it is small in code size, integrating and maintaining tcmalloc for example would most likely be more work.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71786/new/

https://reviews.llvm.org/D71786





More information about the llvm-commits mailing list