RunKV
RunKV copied to clipboard
replace unnecessary Bytes with Vec<u8> and &[u8] in storage module
trafficstars
As in #74 , create or clone Bytes involves atomic operation, whose costs cannot be ignored if performs frequently (e.g. in iterators). Unnecessary Bytes should be replaced with Vec<u8> or &[u8].
lgtm
@zackertypical Welcome, please make sure to run make fmt to lint the codw and resolve all warnings manually, otherwise CI would not pass.