diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-09-04 13:14:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-04 13:14:44 -0500 |
commit | c60dd53210745d9d8e7d3a5ca0310370a33553f4 (patch) | |
tree | 76fc046958235a3fbba13c4082a1e1cd3b1d3bd3 /components/script/task_source/user_interaction.rs | |
parent | 4608955949aa20a2d2ed251b56e9a5a3cf5681c5 (diff) | |
parent | 5d06c9959f9c9035d6dd419a87184d96bf033f08 (diff) | |
download | servo-c60dd53210745d9d8e7d3a5ca0310370a33553f4.tar.gz servo-c60dd53210745d9d8e7d3a5ca0310370a33553f4.zip |
Auto merge of #18355 - servo:no-fmt, r=emilio
Reduce usage of fmt in serialization and error reporting
`format!` and `write!` create a somewhat-heavyweight `Formatting` struct and use dynamic dispatch to call into impls of `Dispaly` and related traits. The former also allocates an intermediate string that is sometimes unnecessary.
I started looking into this from https://bugzilla.mozilla.org/show_bug.cgi?id=1355599, but I expect the impact there will be small to insignificant. It might be a slightly less so on parsing (error reporting).
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18355)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/task_source/user_interaction.rs')
0 files changed, 0 insertions, 0 deletions