Skip to content

Conversation

@solidpixel
Copy link
Contributor

@solidpixel solidpixel commented Aug 13, 2025

The timeline data consists of a lot of repeating strings, so it is a good candidate for string memoization to reduce the amount of duplicate variable values being stored in memory.

In local testing this PR reduces load time memory use (memoizing raw trace) by about 10%, and dynamic viewer memory footprint (memoizing processed trace) by a similar amount.

Fixes #142

@solidpixel solidpixel force-pushed the memoize branch 3 times, most recently from 45f0528 to 57abd23 Compare August 13, 2025 17:24
@solidpixel solidpixel merged commit 34fef5a into main Aug 13, 2025
1 check passed
@solidpixel solidpixel deleted the memoize branch August 13, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Timeline layer: Memoize strings in the GUI

2 participants