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

decease allocation in loss function #24

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

Denis-Titov
Copy link
Member

decrease allocation in loss_rate_equation() by about 2x from ~40KB to ~20KB and slightly increase speed by ~10%. Most of the remaining 20KB is because we check param_names by converting Symbol to string which allocates. Maybe could be change in future but the speed is ~90% of max based on rate_equation() rate multiplied by number of data point.

@Denis-Titov Denis-Titov merged commit b0881b8 into main Jun 13, 2024
2 checks passed
@Denis-Titov Denis-Titov deleted the decrease-allocation-of-loss_rate_equation() branch June 13, 2024 00:08
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