Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: aacf8e6779109fe492a2c15c2ce73ffd5a141940be169714dba324df741c9a5e
Ticket: e02798626dfbcd7b33db19e0fc3a9fb9fa0714f4
clock command is 8 times slower with Tcl 9.0b1
User & Date: sebres on 2024-02-26 18:22:10
Changes

  1. icomment:
    Here is the first attempt to show all the differences...
    
    The complete description is the RFE [ddc948cff9], see "Known small incompatibilities" section and in following comment (2018-05-29 18:21:07).
    
    The main differences in tcl tests (change of precedence of some clock-formats by <code>clock scan -format</code>, e. g. <code>%Y%m%d</code> together with <code>%Y%j</code>, see [e7a722cd35]), was already discussed in Tcl core maillist (with Jan and Kevin), however I cannot find the mail anymore. The conclusion at that point was - the changes make sense and can be accepted.
    
    There are also few new formats, for instance <code>%EJ</code> (calendar) and <code>%Ej</code> (astronomical) Julian day number (Julian date, JDN/JD) with time fraction (as floating point number), basically equivalent float form of datetime of sqlite3,
    see [https://github.com/sebres/tclclockmod/pull/16|GH/tclclockmod/#16]
    
    The main enhancements of command are:
    
      - clock configure with possibility to configure main default options per interpreter;
    
      - new option <code>-valid 1|0</code> and configure option [https://github.com/sebres/tclclockmod/pull/10|GH/tclclockmod/#10]
    
      - clock accept new base value <code>-now</code>, as a replacement for <code>[clock seconds]</code>
    
    By the way, periodically I rebased the fixes made for tclclockmod to clock-speedup branch, but the last rebase was 2020-06-23. Since this last rebase, tclclockmod implementation got several fixes (many of them also affecting tcl-core too), that are not back-ported yet to the tcl-core branch, for the full list see [https://github.com/sebres/tclclockmod/compare/973aba1084b2274a29cfda2894ddd445fb432caf...master|GH/tclclockmod/973aba1084b2274a..master].<br/>
    (I can try to rebase it later, if my export-import-marks of git2fossil will be still usable)
    
    IIRC, Flightaware uses also this variant of tclclockmod (possibly excepting few of the last commits) many years.
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"