|
2009-07-23
| ||
| 03:53 | • Closed ticket [2825543fff]: Time loss in expr plus 7 other changes artifact: 3579223f0e user: dgp | |
| 03:39 | • Ticket [2825543fff]: 4 changes artifact: 710c8e1c07 user: sbabbaro | |
| 03:39 | • Add attachment test.tcl to ticket [2825543fff] artifact: 384f99916e user: sbabbaro | |
|
2009-07-22
| ||
| 20:39 | • New ticket [2825543fff] Time loss in expr. artifact: ee622ec71c user: sbabbaro | |
Time loss in expr
Closed / Invalid2825543fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2009-07-22 20:39:24
OS Platform Linux (openSuSE 11.0 and Ubuntu 8.04.2) and Windows XP (ActiveState Release 8.5.6 and 8.5.7) Problem Behavior: expression execution time grows continuously Expected Behavior: expression execution time approximately constant In attached file, I leave to you the script that shows this behavior (almost certainly due to conversion between numbers): is this behavior 'to be considered right' ? If you need further information I am available.
sbabbaroplain2009-07-23 03:39:26
File Added - 336155: test.tcl
dgpplain2009-07-23 03:53:33
allow_comments - 1 print the value of $t to see what is happening. Note that in Tcl 8.4 integer values had limited range and when that range was overflowed the values truncated to that range automatically. Scripts like yours depend on that truncation. In Tcl 8.5 integer range is unlimited. Without truncation,the integers grow bigger. It takes longer and longer to compute on bigger and bigger integers. The solution, as noted in the release notes of Tcl 8.5.0 as something to take care over when migrating from earlier Tcl releases, is to make your integer truncation needs explicit by putting the appropriate int(.) or wide(.) function calls in your expressions.
Log in (anonymous is fine) to add a comment.
Attachments:
- test.tcl [download] added by sbabbaro on 2009-07-23 03:39:26. [details]