Overview
| Artifact ID: | c06d9a2d74abc31de41dc2abe642d97594539da8 |
|---|---|
| Ticket: | 3519865fffffffffffffffffffffffffffffffff
[package require] is too slow |
| User & Date: | basilik99 on 2012-04-25 01:18:25 |
Changes
- icomment:
Hi sebres, You are right: tdom.tcl contains a 2 other [package require]. But, I can't do nothing about it... Are you suggesting to change that file eventhough it is a library file? I doubt skipping [package require] is the way to go... Don't you think so? Howver (and this is also an answer to dgp), we could imagine a new "package prefetch <package_name>" command which would mean "I don't need that package right away but start loading it.". Then "package require" semantic would change a bit to become: "Now, I really need that package so if loading it is not still complete (or hasn't started), freeze the execution until it is." An even better solution for the final user would be that [package require] itself would start the prefetch and Tcl would complete the prefetch/load when it encounters the first command from that package (command "dom" in my case). But I think this solution is too complex to be implemented... Note: if we are able to spawn a [package require] rather than run it in blocking mode, it may also enhance the opening speed of tclsh.exe... Thanks, Étienne
- login: "basilik99"
- mimetype: "text/plain"
- username: "basilik99"