microsoft / Trill

Trill is a single-node query processor for temporal or streaming data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should the payload always be struct?

nsulikowski opened this issue · comments

or class?

Hello! As with all things .Net memory management, the answer tends to come down to "maybe?" The general guidance we give is to start with struct. The logic behind it is that internally to Trill we batch data into groups of up to 80 thousand. Having the data co-located like that is likely to increase throughput at least a little. However, it's not free, because the initial batching will also need to copy the structs into the payload batch.