Hacker News new | ask | show | jobs
by ijustlovemath 1057 days ago
You could improve the speed a little bit (maybe) by doing something like:

    self._fns = {fn.__name__: fn for fn in [...]}
This may not be faster since the list is so short, but worth checking into