|
2000-10-26
| ||
| 08:32 | • Closed ticket [218971ffff]: Bad compialtion of command without args plus 4 o... artifact: 4dc192dd8e user: welch | |
| 01:08 | • New ticket [218971ffff]. artifact: c1df8798fd user: nobody | |
Bad compialtion of command without args
Closed / Fixed218971ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:08:48
OriginalBugID: 3369 Bug
Version: 8.2.1
SubmitDate: '1999-11-05'
LastModified: '2000-02-25'
Severity: LOW
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: All
FixedDate: '2000-02-25'
FixedInVersion: 8.3
ClosedDate: '2000-10-25'
Name:
Marco Conti
ReproducibleScript:
# do-nothing procedure without args
% proc noarg {} {
}
# do-nothing procedure with args
% proc arg {a} {
}
% time noarg 10000
126 microseconds per iteration
% time {arg a} 10000
20 microseconds per iteration
ObservedBehavior:
The problem is identical also with a C function when is called with or
without arguments.
Debugging source code it seems to me that a procedure without args is
compilated each time
is executed (the code is not retained), increasing the executiion time
as showed by `time' command.
The problem is also present in 8.1.1. releas but not in 8.0.4 .
I check this on AIX 4.3, IRIX 5.3 , Linux Slackware and Linux RedHat 6.0
DesiredBehavior:
The code is compilated once also for command without args.
This was solved with related fixes in 8.3.0.
-- 02/25/2000 hobbs
welch Closed ticket [218971ffff].
[History diff]2000-10-26 08:32:16
Log in (anonymous is fine) to add a comment.