Overview
| Artifact ID: | 4efcd5327d310e2b3f5ea556fc9814479de0f995 |
|---|---|
| Ticket: | 3519865fffffffffffffffffffffffffffffffff
[package require] is too slow |
| User & Date: | basilik99 on 2012-04-25 04:29:12 |
Changes
- icomment:
Hi, Indeed, I could install Tcl on my local drive rather than on a network drive as I actually do. My colleague did a test and divides loading time by 8. But we are multiple developers and we have many tools pointing to the Tcl install dir on the network drive. This approach helps centralizing and provides a unified Tcl version for everyone. When choosing the programming language for a new project, I now ask myself the question: "Is this a small program that will be run many times?" If so, I tend to avoid using Tcl because of this long startup latency. Don't you think this kind of problem should be solved in future Tcl versions by introducing a new way of loading packages? The libraries are installed in static directories. This never changes except when you install new ones via teapot. Doesn't it seem strange that Tcl has to search again and again for them each time an interpreter is created? That search could be done once and for all when no new libraries are installed. Or, package loading may be modified to avoid this search. Standard directory names could be used for example to help Tcl get right to the package directory without searching. I never did Tcl development, so I don't know what's feasible and what's not. I am just expressing a user's need. Thanks for your help, Étienne
- login: "basilik99"
- mimetype: "text/plain"
- username: "basilik99"