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

BSON escape() should take a StringData

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.3.14
    • None
    • JavaScript, Performance
    • None
    • Fully Compatible
    • Platforms 2016-09-19

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: