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:
martinsumner 2016-12-11 15:02:33 +00:00
parent 44cee5a6e8
commit 1b63845050
2 changed files with 24 additions and 12 deletions

View file

@ -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.