Tcl Source Code

View Ticket
Login
Ticket UUID: 1177363
Title: encoding file map initialization harms startup performance
Type: Bug Version: obsolete: 8.5a3
Submitter: dgp Created on: 2005-04-05 20:57:37
Subsystem: 38. Init - Library - Autoload Assigned To: dgp
Priority: 7 High Severity:
Status: Closed Last Modified: 2005-04-13 03:29:33
Resolution: Fixed Closed By: dgp
    Closed on: 2005-04-12 20:29:33
Description:
The MakeFileMap routine
in tclEncoding.c  is expensive;
effectively doing a "glob" on
all paths in the encoding search
path.  Currently this is called
during startup (Tcl_FindExecutable, etc.)
making Tcl 8.5 startup slower than 8.4.
User Comments: dgp added on 2005-04-13 03:29:33:
Logged In: YES 
user_id=80530

committed.

dgp added on 2005-04-13 03:23:07:

File Added - 129593: 1177363.patch

Logged In: YES 
user_id=80530


Attached patch addresses the
expensive "glob" believed to
contribute to slow startup times.

Attachments: