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

perf: improve write_fmt to handle simple strings #121001

Merged
merged 7 commits into from Mar 5, 2024

Commits on Feb 20, 2024

  1. perf: improve write_fmt to handle simple strings

    Per @dtolnay suggestion in serde-rs/serde#2697 (comment) - attempt to speed up performance in the cases of a simple string format without arguments:
    
    ```rust
    write!(f, "text")  ->  f.write_str("text")
    ```
    nyurik committed Feb 20, 2024
    Copy the full SHA
    d712e3f View commit details
    Browse the repository at this point in the history
  2. Use intrinsic

    nyurik committed Feb 20, 2024
    Copy the full SHA
    6fa7d6c View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    c50779f View commit details
    Browse the repository at this point in the history
  4. add safety text

    nyurik committed Feb 20, 2024
    Copy the full SHA
    377594d View commit details
    Browse the repository at this point in the history
  5. remove const

    nyurik committed Feb 20, 2024
    Copy the full SHA
    8362b30 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    1eee9f5 View commit details
    Browse the repository at this point in the history
  7. fix doc link

    nyurik committed Feb 20, 2024
    Copy the full SHA
    c85a9df View commit details
    Browse the repository at this point in the history