1
0
mirror of https://github.com/svg/svgo.git synced 2026-01-27 07:02:06 +03:00
Files
svgo/lib
Marvin Hagemeister aa5d667fcb Speed up stringifyNumber (#1717)
I'm currently profiling my build setup and noticed that
`stringifyNumber` pops up here and there. Instead of going with the
double regex replace approach, we'll go with the faster approach in
`removeLeadingZero`.

In total the changes in this PR speed up the build by about `0.9s` in my
project.

<img width="798" alt="stringifyNumber"
src="https://user-images.githubusercontent.com/1062408/204154146-ce67d0c9-faf2-40a1-8186-8d34caea74a5.png">
2022-11-30 11:53:51 +03:00
..
2022-10-17 00:10:39 +03:00
2022-11-30 11:53:51 +03:00
2021-08-27 17:05:39 +03:00
2022-10-08 14:57:57 +03:00
2022-10-08 14:57:57 +03:00
2022-11-11 12:50:33 +03:00
2022-10-10 00:33:19 +03:00
2022-10-17 00:10:39 +03:00
2021-08-27 17:01:29 +03:00