penguin-wwy opened a new pull request, #1949:
URL: https://github.com/apache/fury/pull/1949

   ## What does this PR do?
   
   Pre-allocate memory for the dictionary based on the data size to avoid 
resizing and improve deserialization performance.
   
   ## Related issues
   
   ## Does this PR introduce any user-facing change?
   
   - [ ] Does this PR introduce any public API change?
   - [ ] Does this PR introduce any binary protocol compatibility change?
   
   ## Benchmark
   ```
   # python format
   fury_large_dict: Mean +- std dev: [dict_base] 548 us +- 33 us -> 
[dict_resize] 531 us +- 33 us: 1.03x faster
   
   # xlang format
   fury_large_dict: Mean +- std dev: [dict_xlang_base] 550 us +- 39 us -> 
[dict_xlang_resize] 527 us +- 35 us: 1.05x faster
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to