Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 87d1385377c5a88418352bdfcebb87c6d2c23c8f
Ticket: 0520d17284500573d7c46aa88e0c6b4ebc9b6a02
Exploding runtime with growing list of after idle events
User & Date: pointsman on 2017-01-27 00:28:41
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    The runtime of [update] explodes with the number of events to work on. This is illustrated by this script:
    
    proc stack_after_idle {howmuch} {
        for {set i 0} {$i < $howmuch} {incr i} {
            after idle {
                # Do something.
                set foo bar
            }
        }
    }
     
    foreach howmuch {
        10000
        20000
        40000
        60000
    } {
        stack_after_idle $howmuch
        set start [clock milliseconds]
        update
        puts "$howmuch: [expr {[clock milliseconds] - $start}]"
    }
    
    
    It isnt' obvious, why the overhead isn't linear to the nr of events.
    
  5. is_private changed to: "0"
  6. login: "pointsman"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "4ca203a8e925aecdd9419645f936bccf18cd6ea7"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "pointsman"
  13. subsystem changed to: "02. Event Loops"
  14. title changed to:
    Exploding runtime with growing list of after idle events
    
  15. type changed to: "Bug"