Overview
| Artifact ID: | 0e515b15cc2cbcf6f6356bf704d47f1600b504c7 |
|---|---|
| Ticket: | 1052584fffffffffffffffffffffffffffffffff
TIP#225: O(1) space [range] command. |
| User & Date: | msofer on 2004-10-23 22:27:57 |
Changes
- icomment:
Logged In: YES user_id=148712 The patch uses wideInts for {start,end, step}, but is restricted to a length of INTMAX elements - not this patch's fault, Tcl lists have this restriction. One possible performance impact is that the element variable in [foreach] loops is always a wideInt. Whenever the element is representable by an int, this may impose conversion costs in further computations with it. It may be interesting to study how to return an int object whenever possible. Mybe adding a arithSeriesRepPtr->intObjPtr, and insuring that one of those pointers is always valid, and the other is NULL? There may be better solutions ... - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"