fsdonks / m4

Other
0 stars 1 forks source link

Optimize debug #32

Open fs-tom opened 4 years ago

fs-tom commented 4 years ago

We use a dynamic var in spork.ai.core/debug, and we check this even when we're not debugging (default is false). Turns out, it's 10x faster to deref an atom. Propose switching to an atom, and rewriting the "binding" forms that debug uses to instead reset the atom...Should bring about signifcant perf boost in theory.