Skip to content

Commit

Permalink
bump minimum dedicated layer size
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Aug 4, 2024
1 parent cdd1b0b commit b82625a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rechunk/alg.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,12 @@ def process_meta(
# Only add if it has files to prevent wasting layers
dedicated = contents.get("dedicated", True)

if name != "unpackaged" and dedicated and total_size < 5e6:
if name != "unpackaged" and dedicated and total_size < 10e6:
# Some times, e.g., a KDE image will include a single gnome package
# Which will make rechunk make a dedicated layer for it.
# Force disable dedicated layers if the size is too small.
logger.warning(
f"Meta package '{name}' is too small ({total_size} < 2MB). Disabling dedicated layer."
f"Meta package '{name}' is too small ({total_size} < 10MB). Disabling dedicated layer."
)
dedicated = False

Expand Down

0 comments on commit b82625a

Please sign in to comment.