bykof / cordova-plugin-webserver

A webserver plugin for cordova
Other
120 stars 51 forks source link

accelerate parsing request body #17

Closed EvilDrW closed 6 years ago

EvilDrW commented 6 years ago

using a scanner object to parse the body text was horrifically slow in my app; up to 5 seconds per request. this PR is to remove the scanner and use the hashmap method recommended on several stack overflow examples related to NanoHTTPD. in my app, this removed all delays associated with the webserver and made the application much more responsive.

bykof commented 6 years ago

Looks good!