Open aleksdmladenovic opened 1 week ago
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
Description
I exposed the drop function of Bytes for resolving the memory fragmentation issues because Bytes are often very small (~50% of the data is less than 500 bytes). I invoked the drop function by using std::mem::drop().
#437
Type of change
How Has This Been Tested?
bazel test //...
passes locallygit amend
see some docsFor testing, I added one test script for evicting items when there is not enough space.
Script: cargo test --test memory_store_test insert_drop_test -- --nocapture
Output:
This change is![Reviewable](https://reviewable.io/review_button.svg)