Changes between Initial Version and Version 1 of Ticket #37435


Ignore:
Timestamp:
Oct 17, 2026, 6:23:32 AM (81 minutes ago)
Author:
harshit gupta
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37435 – Description

    initial v1  
    11Summary:
    2 Speed up post-commit callback dispatch
     2Speed up post-commit callback dispatch 
    33
    44Description:
    … …  
    3434Codex helped run benchmarks, and draft the description and submission helper.
    3535
     36
     37
     38
     39
     40
     41== **CODE CHANGES IN THE PR :-
     42- MEANS REMOVED
     43+ MEANS ADDED**
     44
     45{{{
     46
     47-     while current_run_on_commit:
     48-        _, func, robust = current_run_on_commit.pop(0)
     49
     50
     51+    for index, (_, func, robust) in enumerate(current_run_on_commit):
     52+        current_run_on_commit[index] = None         # Release the queue's reference before invoking the callback.
     53
     54}}}
     55
     56
     57
     58
     59
     60== **BENCHMARK CODE { THE RESULT OF THE BENCHMARK AT THE BOTTOM } :-**
    3661
    3762{{{
    … …  
    541566}}}
    542567
     568
     569== **BENCHMARKS**
     570
    543571| .Callbacks. | .Captured payload/callback. | .CPU mask. | ..Base time.. | .Changed time. | ....Speed.... | .Base peak.. | .Changed peak. | .Memory. |
    544572| ----------- | --------------------------- | ---------- | ------------- | -------------- | ------------- | ------------ | -------------- | -------- |
    … …  
    598626
    599627
    600 CHANGES:-
    601 - MEANS REMOVED
    602 + MEANS ADDED
    603 
    604 {{{
    605 
    606 -     while current_run_on_commit:
    607 -        _, func, robust = current_run_on_commit.pop(0)
    608 
    609 
    610 +    for index, (_, func, robust) in enumerate(current_run_on_commit):
    611 +        current_run_on_commit[index] = None         # Release the queue's reference before invoking the callback.
    612 
    613 }}}
Back to Top