Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1953

Speed up parsing of multipart/related requests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0, 1.7.0
    • HTTP Interface
    • None

    Description

      Parsing of multipart/related requests searches for the MIME boundary string using the couch_httpd:find_in_binary/2 function, which can be made more efficient.

      When the boundary string is not found in its entirety in the search data, the function should then look to see if the data ends with a prefix of the string, but it currently looks for any prefix of the string almost anywhere in the search data.

      A pull request to fix this will be submitted shortly.

      Attachments

        1. tests1953.erl
          3 kB
          Nick North

        Issue Links

          Activity

            People

              nicknorth Nick North
              nicknorth Nick North
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: