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

Make Args const in a couple of places #2321

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

tekknolagi
Copy link
Contributor

This otherwise copy-constructs on many calls which calls malloc and so
on and that's not good for function call performance.

Side by side of fib(25) callgrind instructions:

Before:
summary: 2554791411
After:
summary: 2167984106

Or about 15% faster.

This otherwise copy-constructs on many calls which calls malloc and so
on and that's not good for function call performance.

Side by side of fib(25) callgrind instructions:

Before:
  summary: 2554791411
After:
  summary: 2167984106

Or about 15% faster.
@seven1m seven1m merged commit 8de7b6e into natalie-lang:master Nov 11, 2024
14 of 15 checks passed
@seven1m
Copy link
Member

seven1m commented Nov 12, 2024

This is fantastic. Thanks so much. 🤗

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.

2 participants