Overview
| Artifact ID: | 6636cf63935ea5dafbccce142cd9d36f15fcc8f56a2199d96fedbcf922aeebd3 |
|---|---|
| Ticket: | 69b4f7eb379e7b806c0c144a36059ca55f569634
FilterInputBytes(): signed integer overflow, poor worst-case performance lengthening objPtr |
| User & Date: | chrstphrchvz on 2022-04-13 18:34:58 |
Changes
- icomment:
Apparently there are other places in Tcl where objects are first grown exponentially, and then linearly once doubling is not possible. I would think those are affected by performance issues similar to the one seen in <tt>FilterInputBytes()</tt>, but maybe that is avoided by their use of <tt>TCL_MIN_GROWTH</tt>. Without a more rigorous analysis, the alternative growth algorithm I suggest (i.e. to approximate logistic growth) may increase the likelihood that a program terminates (due to wasted memory starving other needed allocations) rather than eventually finishes.
- login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"