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

Idiomatic fixes #2

Merged
merged 8 commits into from
Sep 24, 2023
Merged

Idiomatic fixes #2

merged 8 commits into from
Sep 24, 2023

Conversation

chris-ha458
Copy link
Contributor

Many of these changes revolve around unwrap.

There are more changes that could be done to improve performance, readability or correctness, but most would need atleast some kind of consideration as to the correct implementation.

If fixes like this is welcome and merged, I would open issues that would discuss potential changes and their considerations

@nickspring
Copy link
Owner

nickspring commented Sep 24, 2023

Hi, sure any changes are welcome. However, I dream about speed improvements. Some ideas

  • calc coherence & mess in threads
  • or calc mess for plugins in threads (or some async?)
  • or something other...

I'm thinking about it because it is still slower than chardet or chardetng (2-3 times).
Performance can be compared via cargo run --bin performance --feature performance --release

Anyway thanks for PR, I will go through it today.

@nickspring nickspring merged commit 25bf11a into nickspring:main Sep 24, 2023
3 checks passed
@chris-ha458 chris-ha458 deleted the idiomatic_fixes branch September 25, 2023 08:57
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