4 ms·
It's a rare application where the gap between creating a new immutable object (aside: this is really annoyingly hard to write this quickly and cleanly in C#, it
by eropple 11y ago
It's a rare application where the gap between creating a new immutable object (aside: this is really annoyingly hard to write this quickly and cleanly in C#, it is my one serious beef with the language--looking forward to record classes!) and the GC of the old one matters materially. If they're not being shared across multiple requests, for example, it's pretty rare that the momentary superposition of deleted and not-deleted would be risky.