Bring compression back to SFT
It is expensive on the CPU - but it leads to a 4 x increase in the cache coverage. Try and make some small micro gains in list handling in create_block
This commit is contained in:
parent
44cee5a6e8
commit
1b63845050
2 changed files with 24 additions and 12 deletions
|
@ -246,7 +246,7 @@ check_forinkertype(_LedgerKey, _Object) ->
|
|||
create_value_for_journal(Value) ->
|
||||
case Value of
|
||||
{Object, KeyChanges} ->
|
||||
term_to_binary({Object, KeyChanges});
|
||||
term_to_binary({Object, KeyChanges}, [compressed]);
|
||||
Value when is_binary(Value) ->
|
||||
Value
|
||||
end.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue