Skip to content

Commit

Permalink
More fine tuning for Apple Silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescAlted committed Jan 21, 2025
1 parent 3aa7d53 commit cb5f638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blosc2/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ def compute_chunks_blocks( # noqa: C901
# min_blocksize = blosc2.cpu_info["l1_data_cache_size"] * 4
elif platform.system() == "Darwin" and "arm" in platform.machine():
# For Apple Silicon, experiments say we can use 4x the L1 size
min_blocksize = blosc2.cpu_info["l1_data_cache_size"] * 4
min_blocksize = blosc2.cpu_info["l1_data_cache_size"] * 2
elif "l1_data_cache_size" in blosc2.cpu_info and isinstance(
blosc2.cpu_info["l1_data_cache_size"], int
):
Expand Down

0 comments on commit cb5f638

Please sign in to comment.