cgbystrom / netty-tools

A collection of tools useful when working with JBoss Netty.
MIT License
259 stars 68 forks source link

memory mapped files #9

Open briangu opened 13 years ago

briangu commented 13 years ago

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 commented 13 years ago

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.

cgbystrom commented 13 years ago

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

briangu commented 13 years ago

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.