The following simple script demonstrates a siginificant listbox performance regression in Tk 8.5a6:
pack [listbox .lb]
puts [time {
for {set n 0} {$n < 100000} {incr n} {
.lb insert end "This is item #$n"
}
}]
On my rather slow Linux box (running SuSE Linux 10.0), this script produces the output
1793963 microseconds per iteration
Compare this with the time needed by Tk 8.4.13:
1126718 microseconds per iteration
This is an unacceptable performance regression.
Logged In: YES
user_id=317958
Originator: YES
I have rebuilt Tk 8.5a6, using --enable-xft=no. The test with this new Tk 8.5a6 version produces the output
1227183 microseconds per iteration
This is just a bit slower than with Tk 8.4.13.
This test shows that the use of the Xft library (which is activated by default in Tk 8.5a6) has a serious negative impact on the performance of the listbox widget.