Profile Ludus & ludus-web #94

Open
opened 2024-06-24 15:39:16 +00:00 by scott · 0 comments
Owner

I'm thinking about optimization after long loading times in Computer Class. I just pushed an update that modifies the arrays of turtle commands, etc., rather than copy-on-write: 9752a87f27

That sped up Ludus itself, cutting the time of repeat 100 { repeat 100 { fd! (1); rt! (inv (100)) }; rt! (inv (100)) } by about 50% at the Janet REPL; and about 64% in the web frontend.

That's still too slow: it's about 15 seconds on my computer in Safari to draw this (as opposed to 25 seconds, originally).

But it's a step in the right direction!

See if there are any other easy wins.

I'm thinking about optimization after long loading times in Computer Class. I just pushed an update that modifies the arrays of turtle commands, etc., rather than copy-on-write: https://alea.ludus.dev/twc/ludus/commit/9752a87f27232129e3c95f35e0b3004c429cf8be That sped up Ludus itself, cutting the time of `repeat 100 { repeat 100 { fd! (1); rt! (inv (100)) }; rt! (inv (100)) }` by about 50% at the Janet REPL; and about 64% in the web frontend. That's still too slow: it's about 15 seconds on my computer in Safari to draw this (as opposed to 25 seconds, originally). But it's a step in the right direction! See if there are any other easy wins.
scott added the
next
optimization
labels 2024-06-24 16:09:41 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: twc/ludus#94
No description provided.