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

Basic optimizations for C# stemmer output #147

Merged
merged 3 commits into from
Apr 11, 2021

Conversation

Turnerj
Copy link
Contributor

@Turnerj Turnerj commented Apr 8, 2021

This moves the among values to static, defined at their declaration. Additionally sets the grouping declarations to be constant rather than static.

Related to discussions in #146

@ojwb
Copy link
Member

ojwb commented Apr 11, 2021

As you noted in #146, the first commit needs more work to support among conditions, but the second by itself works and makes sense so I've cherry-picked that.

I then realised we could only use the static among approach for amongs without functions, so I've pushed a tweak to do that to your branch - this gets us most of the benefits of this since most amongs don't use functions. It passed make check_csharp locally, but I'll wait for CI and merge if it looks good.

@ojwb ojwb merged commit 6d609cd into snowballstem:master Apr 11, 2021
@Turnerj Turnerj deleted the static-among-values branch April 12, 2021 01:34
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