Skip to content

Use saturating arithmetic in memory footprint calculations - #120

Merged
lucianbc merged 4 commits into
mainfrom
lucianbc/saturating-footprint-arithmetic
Dec 1, 2026
Merged

lucianbc merged 4 commits into
mainfrom
lucianbc/saturating-footprint-arithmetic

Conversation

@lucianbc

@lucianbc lucianbc commented Dec 1, 2026

Copy link
Copy Markdown
Member

Use Guava LongMath saturating multiplication and addition across OptimizationEstimator, DrawableResourceDetails, WatchFaceLayoutEvaluator, DynamicNodePerConfigurationFootprintCalculator, and AmbientMemoryFootprintCalculator, parse BitmapFont size as float, reject negative footprints in DrawableResourceDetails and MemoryFootprint.validate, and add unit tests.

Use Guava LongMath saturating multiplication and addition across OptimizationEstimator, DrawableResourceDetails, WatchFaceLayoutEvaluator, DynamicNodePerConfigurationFootprintCalculator, and AmbientMemoryFootprintCalculator, parse BitmapFont size as float, reject negative footprints in DrawableResourceDetails and MemoryFootprint.validate, and add unit tests.
@lucianbc
lucianbc merged commit 3051465 into main Dec 1, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants