FireflyServer / firefly

Firefly - a .NET HTTP server
http://loudej.github.com/firefly
Apache License 2.0
80 stars 16 forks source link

Better MemoryPool implementation for ArraySegment<byte> #9

Open loudej opened 12 years ago

loudej commented 12 years ago

The array segment should really be a sub-block allocation of a much larger byte[]. That's a task for later, while profiling and optimizing. It helps avoid higher cpu costs of garbage collection by reducing the number of pinned objects