xiaokang opened a new pull request, #9566: URL: https://github.com/apache/incubator-doris/pull/9566
# Proposed changes optimize lz4 compress and decompress speed by reusing context ## Problem Summary: Currently, context object is create and free for each lz4 compress and decompress function call. It's not efficient since memory alloc and free is too frequent for once per compression/decompression block, usually a page of less than 64KB. In practice, we see hot pot in LZ4_decompress_safe, memcpy, SpinLock::SpinLoop as in the following screenshot.  ## Checklist(Required) 1. Does it affect the original behavior: (No) 2. Has unit tests been added: (No Need) 3. Has document been added or modified: (No Need) 4. Does it need to update dependencies: (No) 5. Are there any changes that cannot be rolled back: (No) ## Further comments -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org