Tk Library Source Code

View Ticket
Login
Ticket UUID: 1195267
Title: initializing multipart files too slow
Type: Bug Version: None
Submitter: jaspert Created on: 2005-05-04 14:35:48
Subsystem: mime Assigned To: mrose
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2006-11-07 05:18:24
Resolution: Out of Date Closed By: patthoyts
    Closed on: 2006-11-06 22:18:24
Description:
This problem occurs with WinXP and TclTk 8.5a2

The attached multi-part MIME file of about 1.3MB
initializes in under 1 second with TclTk 8.4.9, or on
Linux, but takes around 8 seconds to initialize with
WinXP and TclTk 8.5a2

Single-part MIME files are very much faster, even much
larger ones

This could be a clue: a similar problem happened in
older versions of Tcl under Windows if the 'encoding'
directory were not present under lib/tcl8.x -- but in
8.5 wish crashes on startup if the 'encoding' directory
is not present so I cannot test the effect of this
User Comments: patthoyts added on 2006-11-07 05:18:24:
Logged In: YES 
user_id=202636

I bet that this was due to MD5 processing with the (new for
8.5a2) arbitrary-length integers. The MD5 package was fixed
to keep the calculation restricted to a 32 bit values size
even when arbitrary length integers are available.

jaspert added on 2005-05-04 21:39:35:
Logged In: YES 
user_id=456242

(I seem to be having trouble attaching the file; email me if
you need it)