snazzy-d / sdc

The Snazzy D Compiler
MIT License
250 stars 55 forks source link

Add an allocation fast path #372

Open deadalnix opened 4 months ago

deadalnix commented 4 months ago

When the condition are right (small allocation, no maintenance work to be done, etc...), we should be able to allocate on a fast path that just picks an item from the thread bin, if there is one, and returns it.

When this fails, we fall back on the regular path.