Skip to content

Commit d7aad92

Browse files
committed
correct the size of the whole library in the changelog
1 parent bf911fc commit d7aad92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Upgrading from 3.x? Upgrade to the latest 3.x release first, fix the deprecation
173173
- TIFF files that ask for far more memory than they are are refused before anything is allocated: YCbCr subsampling factors other than 1, 2 and 4 (65534x65535 took 4 GB and 5 s for a 32 KB file) and more than 32 samples per pixel (1 GB for 33 KB), and the memory of the YCbCr units counts against `maxPixels`.
174174
- `Animation.decode()` of an APNG or WebP composites each frame as it is decoded, so its peak memory is 1.3 times the result instead of 2.2 (all decoded frames were held next to the composited ones); GIFs let go of each frame's color indices once it is composited (1.45 times, now 1.2).
175175
- `renderSVG()` bounds the work of strokes with round joins: a join was a whole circle of up to 256 points at every vertex of a flattened curve, so a 17 KB path took 9 s and 1 GB and a 50 KB one 2.7 GB (now a wedge on the outer side, 1.6 s and 220 MB, and 0.3 s and 350 MB). Round joins differ from the circles by at most 5 of 255 on the edge pixels. Shapes whose edges cross the rows of the image more than 2^27 times (thousands of huge overlapping strokes took 38 s from 51 KB of SVG) throw a `LimitError`.
176-
- Bundlers drop the parts of the library a page doesn't use: the build's `dist/package.json` declared only `"type": "module"`, which hid the `"sideEffects": false` of the package from them, so `import { Colors }` bundled the whole library (201 kB minified, now about 4 kB).
176+
- Bundlers drop the parts of the library a page doesn't use: the build's `dist/package.json` declared only `"type": "module"`, which hid the `"sideEffects": false` of the package from them, so `import { Colors }` bundled the whole library (about 1.1 MB minified, now about 4 kB).
177177
- `renderSVG()` rasterizes shapes with many edges in near linear time: the edges that start in a row were inserted one by one into the sorted active ones, so text of 20000 glyphs took 15 s (now 0.4 s) and 8000 random curves 18 s (now 2.3 s).
178178
- `renderSVG()` keeps the memory of dashed strokes bounded: dashes beside the image are left out and the others are stroked a batch at a time, so a line of a million dashes (157 bytes of SVG) no longer takes 650 MB. The rasterizer also keeps one sub-scanline's crossings at a time instead of 16.
179179
- AVIF 4:2:0 images of an odd width decode the last column like libavif: it took the chroma of the column to its left too (off by up to 51).

0 commit comments

Comments
 (0)