[ https://issues.apache.org/jira/browse/COUCHDB-1953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13881580#comment-13881580 ]
ASF subversion and git services commented on COUCHDB-1953: ---------------------------------------------------------- Commit 25cceb0c51f62f032e2933a6445391ebbdd9068b in branch refs/heads/1953-fix-mime-multipart-parsing from [~paul.joseph.davis] [ https://git-wip-us.apache.org/repos/asf?p=couchdb.git;h=25cceb0 ] Move find_in_binary from couch_httpd to couch_util Simple move so that we can test it from etap. Seems a bit awkward to export from couch_httpd so I moved it to the util module. Fixes COUCHDB-1953 > Speed up parsing of multipart/related requests > ---------------------------------------------- > > Key: COUCHDB-1953 > URL: https://issues.apache.org/jira/browse/COUCHDB-1953 > Project: CouchDB > Issue Type: Improvement > Components: HTTP Interface > Reporter: Nick North > Attachments: tests1953.erl > > > 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. -- This message was sent by Atlassian JIRA (v6.1.5#6160)