Skip to content

Conversation

@threeseed
Copy link

Based on benchmarks the following performance improvements:

LinearClassifier / 100,000 - 94.7%
LinearClassifier / 1,000,000 - 13.7%

LinearRegressor / 100,000 - 48.3%
LinearRegressor / 1,000,000 - 7.07%

@kali
Copy link
Collaborator

kali commented Jan 12, 2026

If I get this right, you "just" replaced the locking structure, right ? The previous iteration was adding an extra cache, but this PR does not, correct ?

@threeseed
Copy link
Author

If I get this right, you "just" replaced the locking structure, right ? The previous iteration was adding an extra cache, but this PR does not, correct ?

Yes. We did have a PR for symbol cache which we are still looking into.

But this is about locking and the string interning micro optimisation.

@kali
Copy link
Collaborator

kali commented Jan 12, 2026

Pleasse make sure clippy is happy, and we'll merge this.

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