webmin/webmin — pull request #134 by alktlr (2014-03-06 14:20:54+00:00)
Title: Improve file upload speed

Upload speeds was not satisfying so did some investigation and found the read_parse_mime_callback function was called over 3 million times for 650 MB file. Reduced the amount of callback times with 1000 times and removed ptline regex. Upload speed jumped from 5 MB/s to 25 MB/s. As far as I have tested 1000 callbacks less does not affect the process bar.

Not sure what the ptline does. Could not find any references to it in the code.