diff options
author | Mathias Stearn <mathias@10gen.com> | 2013-12-16 16:08:29 -0500 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2013-12-18 19:09:17 -0500 |
commit | edc9da17c4abd325a85134fe5551effe8ee58977 (patch) | |
tree | e3ca2beec45a5d1358905cf4fbc86f9c9cf9bbf3 /src/mongo/db/lasterror.h | |
parent | 0ec3c8d281bf634aba07b73f1ff88aa68ec46a6a (diff) | |
download | mongo-edc9da17c4abd325a85134fe5551effe8ee58977.tar.gz |
SERVER-12132 Stop using stringstream in Value::coerceToString()
This speeds up the function by two changes:
1) Using StringBuilder (through str::stream) rather than stringstream.
2) Not constructing a StringBuilder or stringstream when not needed.
At least with libstdc++, constructing and destructing a stringstream is
extremely expensive.
Diffstat (limited to 'src/mongo/db/lasterror.h')
0 files changed, 0 insertions, 0 deletions