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

BSON escape() should take a StringData

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.14
    • Affects Version/s: None
    • Component/s: JavaScript, Performance
    • Labels:
      None
    • Fully Compatible
    • Platforms 2016-09-19

      SERVER-14592 precipitated this. In the code review, it was originally schwerin's recommendation to do this:
      https://mongo-cr-archive.appspot.com/5151155143311360
      Free function "escape()" in bsonelement.h should be moved to a better place and changed to take a StringData for efficiency, since its callers frequently provide it with string literals or other StringData variables.

            Assignee:
            matt.cotter Matt Cotter
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: