[PATCH] D93761: [libObject/Decompressor] - Speedup Decompressor::resizeAndDecompress() method.

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 23 10:06:48 PST 2020


MaskRay added a comment.

Good to know that D93532 <https://reviews.llvm.org/D93532> added resize_for_overwrite.

> For Release configuration the numbers are: resize_for_overwrite takes ~1700 microseconds, resize takes ~1850000 microseconds. I.e. the new version is ~1088x times faster.

IMO this may be misleading. This appears to be faster because previously memset zero was called on the buffer which triggered page faults and allocates the pages immediately.
With the new change the time is amortized with the decompression itself. I think we should measure the total time with decompression.

LG once this description is fixed or the information is removed from the description.


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

https://reviews.llvm.org/D93761



More information about the llvm-commits mailing list