You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And more, if we can determain that " if the 'getter' do not consume the message, the 'pusher' can not push new message", we can drop all of this code in Push function
// dorp it
events := make([]*bridge.Event, 0, len(m.events)+1)
for _, e := range m.events {
if e.Deadline-tm > 0 { // cleanup outdated
events = append(events, e)
}
}
And more and more, You always alloc new array in Push, and drop it in ExecuteAll. Can you implement a ring buffer to improve the profermance ?
The text was updated successfully, but these errors were encountered:
In
Push
Function, I think you forget :And more, if we can determain that " if the 'getter' do not consume the message, the 'pusher' can not push new message", we can drop all of this code in
Push
functionAnd more and more, You always alloc new array in
Push
, and drop it inExecuteAll
. Can you implement a ring buffer to improve the profermance ?The text was updated successfully, but these errors were encountered: