2 Commits

Author SHA1 Message Date
Shay Banon
f7b538e17f move rest request to provide content as BytesReference
this allows for better buffer usage, specifically when forwarding requests to other nodes
2012-07-07 22:49:31 +02:00
Shay Banon
35233564fd buffer management refactoring
First phase at improving buffer management and reducing even further buffer copies. Introduce a BytesReference abstraction, allowing to more easily slice and "read/write references" from streams. This is the foundation for later using it to create smarter buffers on top of composite netty channels for example (which http now produces) as well as reducing buffer copies when sending transport/rest responses.
2012-07-07 01:26:41 +02:00