mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-10 09:03:08 +00:00
Refactoring
This commit is contained in:
parent
4d1348494f
commit
004d0ae7c7
@ -77,12 +77,6 @@ def compressBitArrays(*bit_arrays):
|
||||
print("flat bitarray is ", bitarray_object)
|
||||
# Compress the bitarray using zlib compression
|
||||
compressed_data = zlib.compress(bitarray_object.tobytes())
|
||||
|
||||
# Calculate the compression ratio
|
||||
# actual_data_size = len(bitarray_object)
|
||||
# compressed_data_size = len(compressed_data)
|
||||
# compression_ratio = actual_data_size / compressed_data_size
|
||||
|
||||
return compressed_data
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user