runtime: improve performance of channel closing without considering receivers #52067
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
Milestone
Because
closechan
will wake up allreceivers
andsenders
(will trigger panic). And afterchansend
acquires the lock again, if it judged that the channel has been closed, the panic will also be triggered, so whenchanrecv
is performed, it can be skipped to judge whether there is a waiting sender, thereby improving performance.The text was updated successfully, but these errors were encountered: