users@grizzly.java.net

any way to make this faster/more scalable?

From: Jon Brisbin <jon_at_jbrisbin.com>
Date: Tue, 26 Jul 2011 13:02:26 -0500 (CDT)

Can I change the readBufferSize based on Content-Length? This is really the question: is there any way (besides eliminating the buffer copy) to make this faster or more scalable?

https://github.com/jbrisbin/node-vs-java-shootout/blob/master/src/main/groovy/shootout/UploadHandler.groovy

It does fine now up to >100MB. But trying to upload a 1GB file is killing my CPU (GC maybe?). Just wondered if there aren't some micro-optimizations I can make to shave a few microseconds off here or there.


Thanks!

Jon Brisbin
http//jbrisbin.com