diff options
author | Steve Bennett <steveb@workware.net.au> | 2010-01-24 12:50:39 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2010-10-15 11:02:44 +1000 |
commit | b33cf7f87ff295726c4a9e86b74217bcb64dbf78 (patch) | |
tree | 3efb922f49b52b38112b7803319be6812e180635 /doc/jim_tcl.txt | |
parent | a230afdc68bcad14a9dfd0f9c8c6955980669cd6 (diff) | |
download | jimtcl-b33cf7f87ff295726c4a9e86b74217bcb64dbf78.zip jimtcl-b33cf7f87ff295726c4a9e86b74217bcb64dbf78.tar.gz jimtcl-b33cf7f87ff295726c4a9e86b74217bcb64dbf78.tar.bz2 |
Rework script/subst parser for improved performance
*: Keep abc(def) as a single token, but split abc($def) into 4 tokens
*: Then optimise when interpolating to keep a reference to the underlying objects
*: This speeds up the 'set a($b)' case a lot
*: Also avoid so much alloc/realloc when parsing scripts and subst objects
Also simplify cmdStruct creation
*: Can omit args=-1 for expand
*: Makes it easy to calculate the length
*: Do it all in a single loop for simplicity, size and speed
Diffstat (limited to 'doc/jim_tcl.txt')
0 files changed, 0 insertions, 0 deletions