RSSAmplifier

Swatinem · Apr 28, 2024

Fun with benchmarking small string optimization

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Sometimes I really like to go down a rabbit hole and obsess about some tiny details. Today is such a day, and I am benchmarking, profiling and trying to micro-optimize a piece of Rust code, specifically looking at small string optimization. My use-case is as following: I have a slice of &dyn Display , and I want to stringify and capture those values for later. To have some comparable test-cases,…

Read on swatinem.de

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.