[erlang-questions] gen_tcp receving slow

Claes Wikstrom klacke@REDACTED
Tue Sep 25 10:35:50 CEST 2007


igwan wrote:

> POSTing or PUTing a file goes no faster than 2MB/s 
> at 100% CPU load.
> 


Here's my guess, when POST'ing data you'd typically POST to .yaws page
which then subsequently invokes yaws_api:parse_post/1

There is a lot of parsing that goes on in order to split up
a POST into its components. This code can undoubtedly be made a lot
faster - especially when the case is a simple file upload
and you just want to stream the data to an output file.

So - this is no TCP asymmetry - it's just poorly written parse code
that parse the POSTed data.


/klacke



More information about the erlang-questions mailing list