1
0
mirror of https://github.com/svg/svgo.git synced 2026-01-27 07:02:06 +03:00

6 Commits

Author SHA1 Message Date
Lorfdail
50c326bbff perf: optimiztions to reduce regression test runtime (#2135)
Small group of changes that at reduce the regression test runtime
by about 14%.

Motivation for this change in particular were the large PNGs usually
allocated for even the smallest SVGs in the test data which both increases
the time spent allocating as well as the time pixelmatch would take for the
comparison.

The other changes improve not only the test runtime but also the normal
SVG processing given the input data has cases caught by
removeHiddenElems which also has the by far most significant of the 3
changes. All the changes done for baseline performance optimization are
very unlikely to cause any harm and would need specific sets of input
SVGs mostly consisting of visibility checks regarding the element style
to impact performance in a negative way. In my local tests these changes
gave an additional ~7-8% time reduction with the svgo data set.
2025-12-03 14:10:44 +00:00
Seth Falco
1f33cbe3ae ci: separate regression tests and write delta report (#2190) 2025-12-02 10:27:48 +00:00
Seth Falco
79a2167dc9 ci: save test reports to artifacts (#2189) 2025-12-01 23:05:14 +00:00
Seth Falco
7af279fc49 docs: fix all mdn urls by specifying en-US (#2182)
MDN used to redirect hits to `/docs` to the users locale, however they
stopped doing that for some reason. This broke all MDN links on our
documentation/JSDocs.

This inserts `en-US` to all MDN URLs which fixes the links.
(Unfortunately, this means all users may be taken to the English site
regardless of their language preference.)
2025-10-30 09:40:58 +00:00
Seth Falco
10350e2233 chore: split process for optimize and compare (#2168) 2025-08-25 17:25:19 +01:00
Seth Falco
cc489c2f34 chore: revamp regression tests (#2166) 2025-08-18 22:22:30 +01:00