Optimize Queue #7
Labels
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: CyberTail/code#7
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Right now, the queue is likely to expand far faster than it can be processed, and will probably run out of memory quickly.
Possible fixes:
Channel
is now used as a queue, and pushing will simply block until the queue gets used up.However, this may lead to EEG data not being read while blocking on the FFT completion, so it will still need to be optimized to prevent that at all costs.
Queue items older than ~10s (to be tested) are now thrown away.
I could use the try_send() method to return on fail rather than blocking, but I think blocking may be the more ideal scenario? To be tested.