BurntNail / Souris

A tiny no_std database designed for optimising size at runtime cost.
MIT License
1 stars 0 forks source link

Avoid unnecessary cloning in compression functions #4

Closed coderabbitai[bot] closed 3 weeks ago

coderabbitai[bot] commented 3 weeks ago

As discussed in PR #3, in this comment, the methods rle and lz currently take ownership of their input, which leads to unnecessary cloning in the BinaryData::ser method. Consider modifying these methods to accept references instead of taking ownership to improve performance and reduce memory usage.\n\nRequester: @BurntNail

coderabbitai[bot] commented 3 weeks ago

This issue has been resolved in PR #3. Closing this issue.