netty-tools icon indicating copy to clipboard operation
netty-tools copied to clipboard

memory mapped files

Open briangu opened this issue 13 years ago • 3 comments

Hi,

Thanks for your netty tools. I was looking at the file handler and converted it from using a memory buffer to a memory mapped file. Please take a look and pull if you like.

Brian

briangu avatar Aug 14 '11 21:08 briangu

I've updated the code and done some initial testing. Want to do more testing before I call it done. Take a look...I think it could be way faster than the prior implementation as no memory is every used to cache the file, as it's all memory mapped based.

briangu avatar Aug 15 '11 19:08 briangu

Sorry for the delayed response, busy at work. I'll take a look at this soon.

cgbystrom avatar Aug 22 '11 08:08 cgbystrom

No worries. I'm in the process of combining some of your tools and some other tools into a single web server package. I've extended the tools to support HttpChunk proxies to the file system or Amazon S3. Additionally, it will support virtual hosts via a modified version of your RouterHandler. I've made some tweaks to the static file system handler to enable it to function normally as a rails-like /public folder. It's shaping up into a very nice little netty-based customizable webserver.

briangu avatar Aug 22 '11 15:08 briangu