Tcl Source Code

View Ticket
Login
Ticket UUID: 1344747
Title: patch to speed up Tcl_SplitList
Type: Patch Version: None
Submitter: nobody Created on: 2005-11-01 11:01:04
Subsystem: 10. Objects Assigned To: msofer
Priority: 7 High Severity:
Status: Closed Last Modified: 2006-10-01 02:16:45
Resolution: Accepted Closed By: msofer
    Closed on: 2006-09-30 19:16:45
Description:
Minor Tcl_SplitList speed up:

1) the strlen(list) is redundant as it is == l - list
2) the ++size may as well be included in its initial value
3) the size estimate can be reduced by only 
incrementing size once for consecutive whitespace.
User Comments: dgp added on 2006-06-21 19:53:34:

File Added - 182433: 1344747.patch

dgp added on 2006-06-21 19:53:33:
Logged In: YES 
user_id=80530


Here's a corrected patch that
applies successfully to both
active branches.

nobody added on 2005-11-01 18:01:09:

File Added - 154648: Tcl_SplitList.patch

Attachments: