rtsao / csjs

:sparkles: Modular, scoped CSS with ES6
MIT License
576 stars 32 forks source link

Improve performance of extractExtends() #44

Closed scott113341 closed 7 years ago

scott113341 commented 8 years ago

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

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling cb20415ca4cb4228d9783a1979cce347872bad40 on scott113341:extract-extends-performance into 484612b13bb0f297c78ba22e791a0e249fea32f8 on rtsao:master.

scott113341 commented 7 years ago

Closing for now, can revisit this later