FireflyServer / firefly

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

SocketAsyncEventArgs should be returned to pool per call #8

Open loudej opened 12 years ago

loudej commented 12 years ago

Could use less memory if you don't have 2 of those overlapped managers allocated per active connection... They only need to be taken from pool for the duration of an async call. Essentially the same places where the Completed delegate is assigned would be where you would acquire and free the object.

loudej commented 12 years ago

Before this is done - of course - the memory pool should actually pool these.