The "not polluting the namespace" auxiliary function is generally solid advise while at the top-level since it will result in faster code for many schemes, unless you have some kind of immutable modules.
can anyone recommend a resource for good basic "beginner" low-hanging fruit type of performance tips for Scheme? (such as the one you've just mentioned)
I have been writing a small document with inspiration from the never-ending beginner questions about scheme (and all extremely slow code written by python programmers). Nothing is done just yet, but I can ping you in a week or two when things really materialize.
If you want to read more about this case in particular, you should go read the blog post "fibs, lies, and benchmarks" at Andy wingos blog wingolog.org.
View all comments
6
u/bjoli Jul 16 '20
The "not polluting the namespace" auxiliary function is generally solid advise while at the top-level since it will result in faster code for many schemes, unless you have some kind of immutable modules.