Overview
| Artifact ID: | 9f815a8a3ab4426d9860b5913574be294f110d26 |
|---|---|
| Ticket: | b43f2b49f75ec8b60c7e5b59a21556528657e77a
Non-linear lappend performance |
| User & Date: | dkf on 2014-07-15 22:25:30 |
Changes
- icomment:
I don't know if <a href="http://paste.tclers.tk/3224">http://paste.tclers.tk/3224</a> describes the same problem. If it does, the multi-<tt>lappend</tt> is buried inside a package. <blockquote><pre> # Using the same tktable binary I see a huge speed difference between # # tcl/tk 8.5.8 (all fine and good) # # and # # tcl/tk 8.6.1 (waaay too slow) # # Just try to scroll down. package require Tk package require Tktable proc cellcmd {row column} { return [string repeat "$row, $column " 100] } scrollbar .hs -orient horizontal -command ".table xview" scrollbar .vs -orient vertical -command ".table yview" table .table \ -cols 20 \ -rows 1000000 \ -colstretchmode none \ -xscrollcommand ".hs set" \ -yscrollcommand ".vs set" \ -command {cellcmd %r %c} \ -usecommand 1 \ -cache 0 grid .table -row 0 -column 0 -sticky news grid .vs -row 0 -column 1 -sticky ns grid .hs -row 1 -column 0 -sticky we grid rowconfigure . 0 -weight 1 grid columnconfigure . 0 -weight 1 wm geometry . 1000x800 </pre></blockquote> - login: "dkf"
- mimetype: "text/html"
- username: "dkf"