Git Product home page Git Product logo

Comments (3)

Kixunil avatar Kixunil commented on July 17, 2024 1

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.

sollyucko avatar sollyucko commented on July 17, 2024

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.

workingjubilee avatar workingjubilee commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.