This preallocates a sample slice, under the assumption that most clients will be sending many samples. However, the current implementation is pretty bad for endpoints which may send truly large numbers of samples, since it builds the entire result before emitting. Should these be periodically emitted? Or, should we go ahead and add a streaming processor/ingester interface for this?