Improved event handling to reduce memory allocations and copying
Authored by: artyom-beilis 2012-12-29
Parent: [r2223]
Child: [r2225]