bakpakin / Fennel

Lua Lisp Language
https://fennel-lang.org
MIT License
2.42k stars 124 forks source link

Reorder `multi-sym?` checks to save memory #440

Closed RobertCochran closed 1 year ago

RobertCochran commented 1 year ago

Rearrange the checks in multi-sym? so that we don't do symbol splitting until we're sure the symbol isn't otherwise disqualified from being a multi-sym. This new check ordering saves memory and time compared to the existing one.

technomancy commented 1 year ago

This looks great; thank you. I've merged the changes.