News for hackers. Stuff that matters.
Re:Refactoring vs. defactoring by TeMPOraL on Thursday October 28, 2021 @08:24AM (#29025225)
If you want performance, you may be better off using arrays in some cases. Instead of an alist or a hash table, make a struct - or even just a cons cell like: (cons keys values). Then have your association function do a linear search for target key on (car table), e.g. via #'position, and use its index to fetch the value from (cdr table) directly.

There are no comments on this comment yet.