cortoproject / corto

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

Don't create objects when serializing between content types #666

Closed SanderMertens closed 6 years ago

SanderMertens commented 6 years ago

Currently, corto creates temporary objects when serializing between content types. This can cause unwanted side-effects, like lifecycle hooks being called while serializing. Instead of using objects, corto should use the corto_mem_new API to allocate a chunk of memory big enough to act as intermediate value.