Comments (3)
Sure, would love to see more benchmarks. Unfortunately, I have different priorities these days, but definitely capable of merging PRs if you're interested.
There's also another crate with a similar goal that is a bit closer to std in its API, it's better developed but lacks some features (size hint, not generic over strategy). I don't remember the name, but the author is japaric, so you should be able to find it if it suits you better.
from fast_fmt.
There is one at https://github.com/Kixunil/fast_fmt/blob/master/src/lib.rs#L408-L435, with the results at https://github.com/Kixunil/fast_fmt#how-fast-is-it-in-practice.
from fast_fmt.
Needs more!
( actually surprised I missed that one given that I tried to scan the repository for such a thing, did I just go blind? )
But actually it really does need at least one more. An "interesting" thing about Rust's std is that right now, writing to a Vec often benches as significantly slower even though it is legal to use with write!
, and it is of special interest given how many &[u8] buffers Rust features, especially if the goal is to optimize for embedded use (since you're more likely to write to a &[u8] slice than a Vec or String). Possibly due to a bulky write_fmt
shim. So, at least that case needs benches.
from fast_fmt.
Related Issues (3)
- Remove the `void` dependency HOT 2
- Thoughts on macros HOT 1
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 fast_fmt.