cortoproject / corto

A hierarchical object store for connecting realtime machine data with web applications, historians & more
https://www.corto.io
MIT License
87 stars 14 forks source link

Reduce amount of copies when serializing objects for subscribers #656

Closed SanderMertens closed 6 years ago

SanderMertens commented 6 years ago

Currently, when an object notification needs to be delivered to multiple subscribers that require data to be delivered in a specific format, every subscriber receives its own copy of the serialized data. This allocates unnecessary amounts of memory and wastes performance.

Instead, data should only be serialized once, and that serialized data should be used for all subscribers.