Arc Forumnew | comments | leaders | submitlogin
1 point by almkglor 5866 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 ^^

1 point by raymyers 5866 days ago | link

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