Closed tomachristian closed 6 years ago
Its safe to reuse these kind of tasks, yes. It reduces allocations and thus GC time. It helps in a high throughput system where lots of such instances might be created. It's a best practice to reuse Task instances where possible, but it's not a HUGE improvement.
What's the rationale for these changes? And is it safe to reuse tasks?