This is an archive of the discontinued LLVM Phabricator instance.

Cache size per class size in SizeClassAllocatorXLocalCache.
ClosedPublic

Authored by alekseyshl on Apr 13 2017, 9:41 AM.

Details

Summary

Allocator::ClassIdToSize() is not free and calling it in every
Allocate/Deallocate has noticeable impact on perf.
Reapplying D31991 with the appropriate fixes.

Diff Detail

Repository
rL LLVM

Event Timeline

alekseyshl created this revision.Apr 13 2017, 9:41 AM
cryptoad accepted this revision.Apr 13 2017, 9:48 AM

LGTM. Confirming this fixes the issue D31991 introduced.

This revision is now accepted and ready to land.Apr 13 2017, 9:48 AM
This revision was automatically updated to reflect the committed changes.