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

Some small (performance) fixes #28

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Some small (performance) fixes #28

wants to merge 4 commits into from

Conversation

ngc92
Copy link

@ngc92 ngc92 commented Jan 22, 2024

This avoids some redundant copying of function parameters, and replaces manual memory management for the tree with a unique_ptr. It also simplifies the memory management in beam search, and reduces the amount of temporary allocations that will be necessary.

The commits in this PR should be basically independent of each other, so feel free to cherry-pick which ones you like. The last one has probably the most significant changes, and though I think the logic is sound, I haven't run any actual tests to see that the outputs are the same (are there unit tests?)

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