For Programmers: Free Programming Magazines  


Home > Archive > Tcl > August 2007 > Re: "booster-label" - why does it work such way? (8.4.12 on Debian









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: "booster-label" - why does it work such way? (8.4.12 on Debian
Bryan Oakley

2007-08-27, 8:34 pm

ZB wrote:
> Hallo,
>
> noticed a strange - but very interesting thing. Take a look at the following
> script:
>
> ================== cut =============
> #! /bin/sh
> # the next line restarts using wish \
> exec wish "$0" "$@"
>
> #label .foo
> for {set ii 0} {$ii < 20} {incr ii} {
> label .label$ii -text "label #$ii" -font "Helvetica 10"
> pack .label$ii
> puts $ii
> }
> ================== cut =============
>
> There is noticeable difference in filling the output window (look at the
> puts counter speed), when you either uncomment the #label .foo line - or
> delete the `-font "Helvetica 10" ' parameter from label definition.


Do you have really slow hardware? Or maybe you're running a *nix version
with an X11 font server on a different machine? The above code happens
in the blink of an eye on my windows box. When I time the code on my
box, both with and without the "label .foo", [time] reports it takes 0
microseconds (read: too fast to measure)



--
Bryan Oakley
http://www.tclscripting.com
_cutiehottiesweetienot

2007-08-28, 4:18 pm

Shania Twain and Halle Berry Licking Pussy!
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com