Comment

Comment by agentultra

> Using a Vec means we allocate memory every time we queue a waker. And that allocation is taken and released every time we have to wake.

Is that so? On every push back? I’d expect it’d only do an allocation when the current array segment is almost full… as a vector you might write by hand or like the ones in the C++ standard libraries do.

parent agentultra 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton