naldikt / NXSS

NX Style Sheet - customize your UI using CSS-like files & conventions.
1 stars 0 forks source link

Parsing optimizations #1

Closed naldikt closed 8 years ago

naldikt commented 8 years ago

Added napsterX project 2000 lines of styles for testing. Brought down parsing time from 500 seconds to 0.18 seconds.

There may be more things we can improve wrt parsing, such as we are double-parsing when it comes to Function/BlockHeader. The idea's Parser should pass a struct of known interesting characters such as dot (to indicate class), colon (to indicate pseudoClass) to this Function/BlockHeader, since it already has to keep track of it.