Skip to main content
4 events
when toggle format what by license comment
Jul 20, 2015 at 1:26 comment added Toxaris Good answer, but: Don't memoize with a linked list as cache. Also it is hard to see whether your definition of memo is actually shared between calls to chainResult. I guess the compiler would float it out and then it is shared?
Jul 20, 2015 at 0:59 comment added Ben Some really, really good advice. Thanks a lot! The speedup was actually even more impressive; it ran almost 3x faster on my system.
Jul 20, 2015 at 0:55 history edited 200_success CC BY-SA 3.0
added 1 character in body
Jul 20, 2015 at 0:48 history answered 200_success CC BY-SA 3.0