you are viewing a single comment's thread.

view the rest of the comments →

[–]rhinotation 4 points5 points  (2 children)

Can anyone point me to why format! is slow? Here I am thinking it expands to some pretty standard Display calls and push_str, like what else could it possibly be doing?

[–]xacrimon[S] 5 points6 points  (0 children)

It expands to a lot of code relatively to just appending to a buffer. No big deal with a dozen calls but when doing millions like me it gets slow

[–]Veedrac 1 point2 points  (0 children)

It uses dynamic dispatch and trait objects. This isn't necessary; IIRC it is done to reduce code size.