countwords
Playing with counting word frequencies (and performance) in various languages. (by unhammer)
linear-builder
Strict Text and ByteString builder, which hides mutable buffer behind linear types and takes amortized linear time. (by Bodigrim)
countwords | linear-builder | |
---|---|---|
2 | 5 | |
4 | 87 | |
- | - | |
10.0 | 7.1 | |
over 1 year ago | 4 days ago | |
Rust | Haskell | |
MIT License | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
countwords
Posts with mentions or reviews of countwords.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-05.
-
High-Performance Haskell?
Wow, thanks for the code review! Noted – I'll try them out when I have some time
-
Limits of possible performance improvements of Haskell/GHC code?
In addition to what's mentioned, the "default" libraries people use are often not the best-performing ones. E.g. Data.Vector.Hashtables is often much faster than Data.HashMap.Strict (which again is typically faster than Data.Map). And we find performance papercuts in common libraries that may simply be due to not enough people optimising for speed.
linear-builder
Posts with mentions or reviews of linear-builder.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-05.
- New release of Builder with linear types, now renderable both to Text and ByteString
-
High-Performance Haskell?
Another interesting area of performance optimisation is linear types. It's already possible to take advantage of them in libraries https://github.com/Bodigrim/linear-builder with real world performance gains and in the future in GHC. More about this here https://www.reddit.com/r/haskell/comments/5z6mxb/linear_types_make_performance_more_predictable/?utm_source=share&utm_medium=ios_app&utm_name=iossmf
- Linear Text Builder: up to 20x faster than alternatives
-
Strict Text builder with linear types, up to 10x faster than Data.Text.Lazy.Builder
I've been toying with a strict Text builder, backed by linear types, and benchmarks look very good, up to 10x faster than Data.Text.Lazy.Builder. I'd like to collect more feedback before releasing it, so I'd appreciate people taking a look at https://github.com/Bodigrim/linear-builder/ or rendered haddocks.
-
Seeking feedback for Text Builder with linear types
I've been playing around with linear types, attempting to design a strict Text builder. Admittedly I know too little about both topics, so I'd appreciate some feedback about my ramblings, because benchmarks look suspiciously good: https://github.com/Bodigrim/linear-builder/
What are some alternatives?
When comparing countwords and linear-builder you can also consider the following projects:
vector-sorting-benchmarks - I want to beat std::sort with Haskell.
emoji - emoji utility for haskell
linear-base - Standard library for linear types in Haskell.
text - Haskell library for space- and time-efficient operations over Unicode text.
text-rope - A wrapper around Text for fast line/column navigation and logarithmic concatenation
text-short - Memory-efficient representation of Unicode text strings