ikalou.
List, Collection Initializer and Capacity
My question is‚ when using a collection initializer with n elements‚ is new List<T>() {...} be as efficient as new List<T>(n) {...}. It would seem logical but I can't find the information nor do I know how to test it.
54 replies
Compression with real time compressed size estimation
I want to group small data messages (1-1000 bytes) into message batches while compressing messages within a batch, maximizing the number of messages in a batch but each batch has a hard size limit and I can't go over a single byte. I don't want to have to guess and start over many times.
3 replies