couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick North (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-1953) Speed up parsing of multipart/related requests
Date Fri, 24 Jan 2014 13:44:38 GMT


Nick North commented on COUCHDB-1953:

Thanks Dave - I'll update release notes and merge to master over the weekend unless there
are any objections. I'll leave any decision on 1.6 to others.

Not quite sure what to go with tests1953.erl - it's standalone module that tests a copy of
the code that's changed, as it's not otherwise accessible. That was the best way for me to
demonstrate that find_in_binary does what it should, but it doesn't really fit with the testing
process for CouchDb.

> Speed up parsing of multipart/related requests
> ----------------------------------------------
>                 Key: COUCHDB-1953
>                 URL:
>             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

View raw message