I’m currently trying to implement HTML cleaning service which accepts html source data and cleaning params as multipart form. Problem arises with huge html’s. In my test case I use 30mb html text, it takes approx. 20 seconds till controller call (for reference same post to nginx takes less then second), actual html processing takes just 1.5sec. I assume that this may be frameworks body parser. Any clue?
I’m currently trying to implement HTML cleaning service which accepts html source data and
Share
This looks like a performance bug. You should report it and – for now – do the parsing using a different library such as Apache Commons FileUpload. It can be integrated with non-servlet-based frameworks quite easily. All you have to do is implement the RequestContext interface and call the parseRequest method. See
http://commons.apache.org/fileupload/apidocs/org/apache/commons/fileupload/FileUploadBase.html#parseRequest(org.apache.commons.fileupload.RequestContext)