jmcnevin / rubypants

RubyPants: SmartyPants for Ruby
Other
29 stars 20 forks source link

Add short-circuits to transformations #22

Closed ashmaroli closed 4 years ago

ashmaroli commented 6 years ago

optimization

Proceed to apply transformations only if the current token contains the concerned entity.

agriffis commented 4 years ago

Thanks for the suggestion, but I think avoiding code complexity is more important than these micro-optimizations.