Hacker News new | ask | show | jobs
by nunez 1544 days ago
> Did this imple­men­ta­tion work? Yes. Did it run fast? No. It was glacial. After noodling with the code for a while, I had my galaxy-brain moment: maybe the inces­sant dupli­ca­tion and dele­tion of 30K data arrays had some­thing to do with it?

I thought OCaml handled this problem with copy-on-write and/or fancy pointer math. Is there more to it?