Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5be347536377167252465f15343b526a679f610a
Ticket: 0520d17284500573d7c46aa88e0c6b4ebc9b6a02
Exploding runtime with growing list of after idle events
User & Date: sebres on 2017-06-30 08:11:04
Changes

  1. icomment:
    I finished my rebase (currently for 8.5 only, can be reintegrated higher), and placed it on my github <a href="https://github.com/sebres/tcl/pull/4">sebres/tcl#4</a> as interim artificial PR (squashed).
    
    This is although a biggish RFE, where all changes together makes sense only (of course some things can be changed/reverted), but basically as ultimate only...
    
    BTW this also fully implements <a href="http://www.tcl.tk/cgi-bin/tct/tip/302.html">TIP #302</a> and many many other things, always bothering me.
    
    I would like to make a decent rebase to fossil with commit-history and review (because backported from my own fork, that is much more sophisticated and very much further developed as standard tcl-core). And then merge it to 8.6/trunk branches. Currently all test-cases passes on my unix/windows systems.
    
    But firstly I would like know if this is imaginable to be a part of core at all? 
    Just because I already invested here too many time and effort by the back-porting (not to mention the development). So I would avoid more effort on my part, if it would meet again on lack of understanding of the TCT (basically I have just no time to work for the recycle-bin)...
    
    What's about this implementation of TIP #302 (and monotonic based time-handling):
    - on all my systems (many projects, some of them very very large) it worked a long time (several years) without any problem.
    - in all of this projects only few lines were changed from "<code>after $startOffset ...</code>" to "<code>after at $startTime ...</code>" (was originally named "<code>after -term</code>").
    But this changes were not really necessary, because almost all the time-jumps are short adjustments of NTP-service and in the worse case some "cron" task with absolute time will be executed just few seconds later as expected. But in the most cases the due-time is anyway long interval.
    In my opinion exactly very short intervals (so no "cron" tasks) but retarded events are more important: if you do a lot of events like "<code>after 5 [list accept $sock]</code>" and they will be executed firstly in 10 seconds (if the time jumps backwards) it would be IMHO much worse as retarded "cron" event which due-time is first in 1 hour.
    I mean the relation between <b>"5ms" and "10s"</b> is much more serious as <b>"1h" and "1h+10s"</b>.
    
    Also I'm totally agree with Kevin and I mean the pros outweigh the cons many times, also if it may potential break theoretical possible incompatibility.
    
    All other changes are totally backwards-compatible (and I tried to hold all the enhancements in API as non-public, except the tcl-commands).
    
    So I'm open and waiting for review, objections and conclusions...
    
    Thx and regards,
    Sergey.
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"