Skip to content

Add buffer pool for serializing subscription results #2824

@joshua-spacetime

Description

@joshua-spacetime

That is, specifically for subscribe and unsubscribe. Currently for a subscribe(unsubscribe) call, the construction of each TableUpdate/BsatnRowList incurs a heap allocation which is then discarded by the task that transmits results to clients. We should grab buffers from a pool and use those buffers in TableUpdates instead of constantly allocating and deallocating new ones.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions