-
-
Notifications
You must be signed in to change notification settings - Fork 949
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(internal): Added RecycledQueue class #1864
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm! Not too fond of the utils directory becoming a place with a wide mix of things in it though, maybe the two existing files in there could be put in some math
directory, and this one be placed somewhere else or having the utils directory renamed?
To me, "utils" sounds a bit like "miscellaneous" (but easier to spell :). |
Indeed, that's what I'd like to avoid, to not have a place where non-related files live. |
I created the directory |
Very nice! |
Description
This PR introduces
RecycledQueue
class, which is similar to a regular FIFOQueue
except that it supports recycling of objects instead of having to create/delete them all the time.This class will be used to build more efficient component lifecycle queues.
Checklist
fix:
,feat:
,docs:
etc).docs
and added dartdoc comments with///
.Breaking Change