The attached safe.tcl file is a rewrite of the SafeBase
to remove gross inefficiences found in the existing
code. This rewrite is based on the code found in the
__8.4 branch head__.
Some timing data, based on the generic plugin mgr in the
works for Tcllib.
Loading a plugin using the current safe base took 2434110
usecs (2.43 seconds!). When using the new safe base attached
here it was only 344632 usecs (0.34 seconds). The current
safe base is 7 times slower than the rewritten version.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Modified SafeBase
Logged In: YES
user_id=75003
Some timing data, based on the generic plugin mgr in the
works for Tcllib.
Loading a plugin using the current safe base took 2434110
usecs (2.43 seconds!). When using the new safe base attached
here it was only 344632 usecs (0.34 seconds). The current
safe base is 7 times slower than the rewritten version.