mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-02-19 12:43:19 +00:00
Compressing bitarrays correction
This commit is contained in:
parent
6cbc0dd0c7
commit
dcfb76721d
@ -79,11 +79,11 @@ def compressBitArrays(*bit_arrays):
|
||||
compressed_data = zlib.compress(bitarray_object.tobytes())
|
||||
|
||||
# Calculate the compression ratio
|
||||
actual_data_size = len(bitarray_object)
|
||||
compressed_data_size = len(compressed_data)
|
||||
# actual_data_size = len(bitarray_object)
|
||||
# compressed_data_size = len(compressed_data)
|
||||
# compression_ratio = actual_data_size / compressed_data_size
|
||||
|
||||
return compressed_data_size
|
||||
return compressed_data
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user