Skip to content

Commit

Permalink
Use nbytes
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Oct 20, 2024
1 parent 8f64e40 commit 331f4db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pypi_data/combine_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def append_buffer(


def buffer_mem_size(buffer: Deque[tuple[tuple[int, str], RecordBatch]]) -> int:
return sum(batch.get_total_buffer_size() for (_, _), batch in buffer)
return sum(batch.nbytes for (_, _), batch in buffer)


def buffer_at_capacity(size: int) -> bool:
Expand Down

0 comments on commit 331f4db

Please sign in to comment.