Arc Forumnew | comments | leaders | submitlogin
1 point by almkglor 6120 days ago | link | parent

Hmm. If you remove 'actions, how about also trying to use just a single 'cons cell:

  (iflet (parsed . remaining) (parse parser remaining)
    ...)

  (def return (parsed remaining)
    (cons parsed remaining))
?

If the speed increase is that large on that testbench, it might very well be due to garbage collection.

This might be an interesting page for our problem here ^^

http://www.valuedlessons.com/2008/03/why-are-my-monads-so-sl...



1 point by raymyers 6120 days ago | link

Tried changing the list to a single cons cell. I did not see any additional performance boost.

-----