StansAssets / com.stansassets.foundation

Collection of utility methods, design patterns, and extensions for Unity.
https://stansassets.com/
MIT License
129 stars 12 forks source link

feat: Support pooling of YieldInstruction for CoroutineUtility.cs #92

Closed pavlo-klymentenko-legacy closed 2 years ago

pavlo-klymentenko-legacy commented 2 years ago

An idea is to pool YieldInstruction intead of creating new ones to prevent useless memory allocations. Also important question is which ones? Probably should be generic by type.

alexey-yaremenko commented 2 years ago

This is implemented and merged into master in #94