TraceMachina / nativelink

🔥🔥🔥 Bazel RBE with CAS server implementation in Rust. The free and open source cache and remote execution service, prioritizing stability and speed for the people that need it.
https://docs.nativelink.com
Apache License 2.0
235 stars 46 forks source link

Resolved Bytes vtable #1057

Open aleksdmladenovic opened 1 week ago

aleksdmladenovic commented 1 week ago

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?


For 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

CLAassistant commented 1 week ago

CLA assistant check
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.