joyent/node — pull request #4964 by trevnorris (2013-03-08 20:45:06+00:00)
Title: WIP: external memory allocation management

Figured I'd get this out there early. There are a massive number of todo's, but wanted feedback as I moved along.

The general point of these changes are:
- Create single location for all external memory allocation
- Manage single location for improved performance and memory management
- Remove Fast/Slow Buffer logic
- Hopefully remove need for SlabAllocator and SlabBuffer

Right now I've simply mimicked how Buffer pools work, but hopefully in the near future we can implement more intelligent memory management.

Everything here is up for debate. These changes will need to be ridiculously well tested and thought though.