Skip to content

Commit

Permalink
remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhrisca committed Dec 4, 2024
1 parent 80c8d2a commit 45077ae
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/asammdf/blocks/mdf_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -1409,8 +1409,6 @@ def _load_data(

record_offset *= samples_size

cc = 0

finished = False
if record_count is not None:
invalidation_record_count = record_count * invalidation_size
Expand Down Expand Up @@ -1463,11 +1461,6 @@ def _load_data(
cur_invalidation_size = 0
invalidation_data = []

from time import perf_counter

t = perf_counter()
ss = 0

while True:
try:
info = next(blocks)
Expand Down Expand Up @@ -1531,8 +1524,6 @@ def _load_data(
seek(address)
new_data = read(compressed_size)

cc += 1

if block_type == v4c.DZ_BLOCK_DEFLATE:
new_data = decompress(new_data, bufsize=original_size)
elif block_type == v4c.DZ_BLOCK_TRANSPOSED:
Expand Down Expand Up @@ -1681,14 +1672,6 @@ def _load_data(
cur_invalidation_size = 0
inv_size -= invalidation_split_size - cur_invalidation_size

ss += info.original_size
t0 = perf_counter()
if t0 - t > 5:
print(f"{ss/1024/1024/5:.2f} MB/s\t{split_size=} {cc=}")
t = perf_counter()
ss = 0
cc = 0

if finished:
if rm and invalidation_size:
invalidation_data = []
Expand Down Expand Up @@ -9511,6 +9494,7 @@ def save(
dl_block = DataList(**kwargs)

for i, data__ in enumerate(data):

data_ = data__[0]

if compression and self.version >= "4.10":
Expand Down

0 comments on commit 45077ae

Please sign in to comment.