Overview
| Artifact ID: | 48d7e852f6bdf357c718763b54cd3e25537fbdb9 |
|---|---|
| Ticket: | d2323d6c284a5081e818dc02f0bbe695a7aa1c61
add parameter ?lastIndex? to [string first] |
| User & Date: | anonymous on 2016-02-25 14:33:02 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
The dubious implementation of tcllib's ::textutil::trim::trimPrefix caught my eye. Why scan the full string when actually looking at the start only? % set haystack [string repeat abc 1000]d % set needle abcd % string first $needle $haystack 2997 % time {string first $needle $haystack} 1000 10.149 microseconds per iteration % time {string first $needle $haystack 0 0} 1000 0.712 microseconds per iteration In this form, I cannot attach my patch file. Will attach or post after creating this ticket. The patch is for the implementation and the tests, not for the documentation. - foundin changed to: "8.6.4"
- is_private changed to: "0"
- login: "anonymous"
- priority changed to: "5 Medium"
- private_contact changed to: "5ef84f1ed636fd4b80333e656cf7dfe1164a9802"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "anonymous"
- subsystem changed to: "18. Commands M-Z"
- title changed to: "add parameter ?lastIndex? to [string first]"
- type changed to: "Patch"