Tk Library Source Code

View Ticket
Login
Ticket UUID: 585455
Title: MIME::initialize speedup
Type: Patch Version: None
Submitter: pascalscheffers Created on: 2002-07-23 15:19:19
Subsystem: mime Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-07-26 01:29:26
Resolution: Accepted Closed By: andreas_kupries
    Closed on: 2002-07-25 18:29:26
Description:
This patch speeds up mime::initialize, it adds three
state variables to the token state, lines (a list),
lines.current (the current line) and lines.count (the
number of lines in the list. It changes the way lines
are processed by splitting the entire message into a
list and fetching new lines from the list as needed. 

From what I've gathered from the MIME RFC documents,
there are no valid encodings in use that would break
the [split $string \n] method.
User Comments: andreas_kupries added on 2002-07-26 01:29:26:
Logged In: YES 
user_id=75003

Patch applied and committed to head.

mrose added on 2002-07-24 22:55:48:
Logged In: YES 
user_id=24077

andreas - i think this is good. go ahead and apply it.

/mtr

andreas_kupries added on 2002-07-23 22:54:05:
Logged In: YES 
user_id=75003

How much of a speedup ? Test data used ?

pascalscheffers added on 2002-07-23 22:19:19:

File Added - 27599: patch.mime

Attachments: