Comments (4)
I introduced an optimization in <Filter as Iterator>::count()
that basically makes them equivalent.
I think this was after introducing naive_count
but before num_chars
in bytecount. So that's probably the reason.
from bytecount.
A quick check in godbolt seems to show them producing identical code at -O
.
from bytecount.
Thanks for speeding up my code and everyone else's - much appreciated!
from bytecount.
You're welcome. 😄
from bytecount.
Related Issues (20)
- Use naive count below ~75 elements in haystack HOT 5
- Add method to count UTF-8 chars HOT 16
- Replace `Iterator::sum()` with `fold` HOT 5
- How does this work? HOT 2
- Update LICENSE.MIT file
- "avx-accel" not available HOT 4
- Failed to parse manifest HOT 3
- Add no_std support HOT 1
- benchmark -C codegen-units=N HOT 2
- CI: run clippy if it's available
- CLI version HOT 6
- The last version cannot bench on 1.20 anymore HOT 7
- "Fancy new algorithm" doesn't work on big-endian machines HOT 13
- understanding SIMD intrinsics HOT 2
- Needs crates.io release HOT 1
- bytecount::num_chars returns wrong value if cpu doesn't support avx2 feature HOT 6
- Documentation, naive_count_32 vs naive_count HOT 5
- benchmark on stable + beta HOT 3
- AArch64 support?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bytecount.