We can skip all the work that extractExtends() performs with a trivial check for \sextends\s in the passed CSS string. I don't have numbers, but I believe this will increase performance non-insignificantly 😉
Coverage remained the same at 100.0% when pulling cb20415ca4cb4228d9783a1979cce347872bad40 on scott113341:extract-extends-performance into 484612b13bb0f297c78ba22e791a0e249fea32f8 on rtsao:master.
We can skip all the work that
extractExtends()
performs with a trivial check for\sextends\s
in the passed CSS string. I don't have numbers, but I believe this will increase performance non-insignificantly 😉39