Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Significant Performance Improvements #27

Merged
merged 2 commits into from
Aug 29, 2024
Merged

Conversation

drew-y
Copy link
Collaborator

@drew-y drew-y commented Aug 29, 2024

Educated guess O(nlogn) to O(n) (VERY ROUGH GUESS)

We were taking a massive performance hit by using shift in the parser. I've removed shift where possible and I've added a custom FastShiftArray to to bypass those limitations where not possible.

Syntax macros processing of 10k lines went from 2216 ms to 156ms

Now compiling 200k lines in 52 seconds (M1 Pro 16gb).

Likely would have taken hours before these changes

We were taking a massive performance hit by using shift. I've added a custom FastShiftArray to to bypass those limitations.

Syntax macros processing of 10k lines went from 2216 ms to 156ms

Now compiling 200k lines in 52 seconds (M1 Pro 16gb).

Likely would have taken hours before these changes
@drew-y drew-y merged commit e407525 into develop Aug 29, 2024
1 check passed
@drew-y drew-y deleted the drew/performance-upgrades branch September 9, 2024 22:35
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.

1 participant