Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27193

Consider adding "small integer" optimizations to Stringbuilder

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.9
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Repl 2017-03-06, Repl 2017-03-27, Repl 2017-04-17, Repl 2017-05-08, Repl 2017-05-29, Repl 2017-06-19
    • 0

      We should optimize StringBuilder to handle writing small integers efficiently. See our itoa implementation for one approach. StringBuilder::operator<<(int) shows up as a CPU bottleneck when profiling our Query micro-benchmarks, mostly due to writing index specification to string.

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: