mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-28 05:24:22 +01:00
extract constant min_header_size
This commit is contained in:
@@ -766,7 +766,8 @@ impl ImmutableRecord {
|
||||
size_values += value_size;
|
||||
}
|
||||
let mut header_size = size_header;
|
||||
if header_size <= 126 {
|
||||
const MIN_HEADER_SIZE: usize = 126;
|
||||
if header_size <= MIN_HEADER_SIZE {
|
||||
// common case
|
||||
// This case means the header size can be contained by a single byte, therefore
|
||||
// header_size == size of serial types + 1 byte from the header size
|
||||
|
||||
Reference in New Issue
Block a user