DescriptionOptimize ParamTraits<float> and ParamTraits<double>
These function become hot on some benchmarks. WriteData is inefficient because
it writes the length, even though it's known on the reader side (compile-time
constant).
For <float> we can simply use WriteFloat. For <double> we can use WriteBytes
instead of WriteData.
BUG=307480
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232060
Patch Set 1 #Patch Set 2 : rebase #
Messages
Total messages: 4 (0 generated)
|