Skip to content
Tcl Source Code History Of Ticket 1586292fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1586292fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1586292fffffffffffffffffffffffffffffffff

  1. Ticket change [433d32bf07] (rid 116525) by msofer on 2006-10-28 16:00:13:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      For reasons that are not important here, I timed the
      speed of proc and ensemble calls in current HEAD. The
      threaded build is *much* slower (1.75x). 
      
      The script at /tmp/test is
      
         proc a {x y} {set x 1}
         namespace ensemble create -command ::w -map {a a}
         # Just to make the timings stabilise accross runs
         # ... probably too much, but who cares
         time {a 1 2} 10000
         time {w a 1 2} 10000
         lappend res proc:[time {a 1 2} 10000]
         lappend res ense:[time {w a 1 2} 10000]
         lappend res [info patchlevel]
         puts [join $res \n]
      
      Building with --disable-shared I get
      
         sh-3.1# ./tclsh /tmp/test
         proc:2.3583 microseconds per iteration
         ense:3.1632 microseconds per iteration
         8.5a6
      
      and with --disable-shared --enable-threads
      
         sh-3.1# ./tclsh /tmp/test
         proc:4.1325 microseconds per iteration
         ense:5.8033 microseconds per iteration
         8.5a6
      
      
    4. foundin initialized to: "obsolete: 8.5a6"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "msofer"
    10. subsystem initialized to: "49. Threading"
    11. title initialized to: "threaded build too slow?"
    12. type initialized to: "Bug"
  2. Ticket change [ff06c4b418] (rid 108689) by msofer on 2006-10-28 23:21:36:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      With ActiveTcl it is even slower (I imagine this is due to
      the shared build, as not much optimisation has been done in
      proc calls since then):
      mig@ice:/home/CVS/tcl_SF_clean/unix$ tclsh /tmp/test
      proc:5.4506 microseconds per iteration
      ense:7.678 microseconds per iteration
      8.5a4
      
      % parray ::activestate::ActiveTcl
      ::activestate::ActiveTcl(arch)          = linux-ix86
      ::activestate::ActiveTcl(as,mode)       = normal
      ::activestate::ActiveTcl(build)         = 261540
      ::activestate::ActiveTcl(buildtime,fmt) = Sat Apr 15
      01:24:58 AM PDT 2006
      ::activestate::ActiveTcl(buildtime,sec) = 1145089498
      ::activestate::ActiveTcl(maturity)      = beta-5
      ::activestate::ActiveTcl(product)       = ActiveTcl
      ::activestate::ActiveTcl(release)       = 8.5.0.0
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Ticket change [bb35ac305b] (rid 129444) by msofer on 2006-10-29 00:01:59:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Threaded build using glibc's malloc instead of Tcl's pooled
      allocator it is even slower, so the problem is probably not
      mainly with the allocator.
      
      mig@ice:/home/CVS/tcl_SF_clean/unix$ ./tclsh /tmp/test
      proc:4.4455 microseconds per iteration
      ense:6.0062 microseconds per iteration
      8.5a6
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  4. Ticket change [6891f8eb63] (rid 103092) by msofer on 2006-10-29 00:08:40:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Disabling the call to TclpCheckStackSpace in TclInterpReady
      makes threaded builds quite a bit faster:
      
      mig@ice:/home/CVS/tcl_SF_clean/unix$ ./tclsh /tmp/test
      proc:3.0335 microseconds per iteration
      ense:4.5398 microseconds per iteration
      8.5a6
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  5. Ticket change [4255d51d6f] (rid 116351) by msofer on 2006-10-29 01:33:23:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Hmmm ... my timings are very erratic. Several runs of the
      same threaded build, right after each other:
      
      mig@ice:/home/CVS/tcl_SF_clean/unix$ ./tclsh /tmp/test
      proc:4.48498 microseconds per iteration
      ense:6.03318 microseconds per iteration
      8.5a6
      mig@ice:/home/CVS/tcl_SF_clean/unix$ ./tclsh /tmp/test
      proc:3.90434 microseconds per iteration
      ense:5.86458 microseconds per iteration
      8.5a6
      mig@ice:/home/CVS/tcl_SF_clean/unix$ ./tclsh /tmp/test
      proc:4.10458 microseconds per iteration
      ense:5.98978 microseconds per iteration
      8.5a6
      mig@ice:/home/CVS/tcl_SF_clean/unix$ ./tclsh /tmp/test
      proc:2.1277 microseconds per iteration
      ense:2.93122 microseconds per iteration
      8.5a6
      mig@ice:/home/CVS/tcl_SF_clean/unix$ ./tclsh /tmp/test
      proc:4.39368 microseconds per iteration
      ense:6.04074 microseconds per iteration
      8.5a6
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  6. Ticket change [200fed948d] (rid 91251) by mistachkin on 2006-10-29 09:37:48:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      
      It's probably slower because the previous
      TclpCheckStackSpace was a no-op on Unix.
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  7. Ticket change [623268e58b] (rid 92373) by msofer on 2008-01-12 20:13:20:

    1. icomment:
      Logged In: YES 
      user_id=148712
      Originator: YES
      
      Still an issue? If it was due to stack checking it should have been fixed by the new algorithm.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  8. Ticket change [47021189b9] (rid 99613) by hobbs on 2008-01-14 07:31:12:

    1. icomment:
      Logged In: YES 
      user_id=72656
      Originator: NO
      
      Running the head over tclbench with a threaded and non-threaded build (yes and no below), it is slower (mutexes actually kicking in), but not as serious as the above numbers show.
      
      TCL_INTERP: 1:8.5.1b1 2:8.5.1b1
      STARTED 2008-01-13 16:19:59 (runbench.tcl v1.21)
      Benchmark 1:8.5.1b1 /home/jeffh/install/linux-ix86/bin/tclsh8.5t-no
      abbccdeeeffghkllmmmmnpprrssstuvw 00:02:18 elapsed
      131271 milliseconds
      Benchmark 2:8.5.1b1 /home/jeffh/install/linux-ix86/bin/tclsh8.5t-yes
      abbccdeeeffghkllmmmmnpprrssstuvw 00:02:43 elapsed
      157038 milliseconds
      
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  9. Ticket change [86735f2b71] (rid 131511) by msofer on 2008-06-28 21:06:03:

    1. closedate changed to: "2008-06-28T14:06:03"
    2. closer changed to: "msofer"
    3. resolution changed to: "Fixed"
    4. status changed to: "Pending"
  10. Ticket change [5c43c6c7b1] (rid 115272) by sf-robot on 2008-07-13 09:20:23:

    1. closedate changed to: "2008-07-13T02:20:23"
    2. closer changed to: "sf-robot"
    3. icomment:
      Logged In: YES 
      user_id=1312539
      Originator: NO
      
      This Tracker item was closed automatically by the system. It was
      previously set to a Pending status, and the original submitter
      did not respond within 14 days (the time period specified by
      the administrator of this Tracker).
      
      
    4. login: "sf-robot"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "sf-robot"