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

compression in scala #20

Merged
merged 9 commits into from
Jan 20, 2025
Merged

compression in scala #20

merged 9 commits into from
Jan 20, 2025

Conversation

schlawg
Copy link
Contributor

@schlawg schlawg commented Nov 5, 2024

a low effort port to scala 3 syntax. somehow it is roughly 8-10% faster than the java version on sbt test. maybe because of tailrec? i haven't the faintest clue

did this while investigating lichess-org/lila#16317 and it's fine if we just want to stick with java. it's doubtful the apparent speedup running test cases would have any measurable effect on lila

@schlawg
Copy link
Contributor Author

schlawg commented Jan 19, 2025

recovered the performance lost on clock tests. so this one appears to be faster all around.

@ornicar ornicar merged commit 217b1c3 into lichess-org:master Jan 20, 2025
1 check passed
ornicar added a commit to lichess-org/lila that referenced this pull request Jan 20, 2025
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.

3 participants