Artifacts Associated With Ticket 403709ffffffffffffffffffffffffffffffffff
Ticket change [5a93a39fd5] (rid 118165) by dkf on 2001-02-09 11:30:17:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
This patch makes splitting a string into single characters use only as many objects as there are distinct characters in the input string. It boosts performance in the short string case, which is nice, but turns the long string case from intractable into quite feasable. :^) All tests in the current CVS HEAD are passed with this patch applied.
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dkf"
- subsystem initialized to: ""
- title initialized to: "Improve speed of [split $string ""] (bug #131523)"
- type initialized to: "Patch"
Add attachment "None" [d48cf63452] (rid 123466) by dkf on 2001-02-09 18:30:17.
Ticket change [ec50d6ff51] (rid 103693) by dkf on 2001-02-09 18:31:13:
- icomment:
Please review; I think this one is OK (it certainly seems to work for me) but it is nice to have someone else give it the once over before applying it...
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [7df500a0d5] (rid 97321) by dgp on 2001-02-10 04:08:53:
- icomment:
It applies, builds, and passes 'make test' for me on a 64-bit Alpha. I'm a bit uneasy by all the typecasting Tcl_UniChar -> int -> (char *) What are they for and are you confident they will be OK always and everywhere? Other than that, the variable names hent and intch don't seem to fit with the core traditions. Use of hPtr or hashEntry is more common.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [96a53ca760] (rid 106355) by andreas_kupries on 2001-02-12 13:40:33:
- icomment:
Tcl_UniChar -> int -> (char *) The first is safe, AFAIK, because IIRC Tcl_UniChar represents UTF16 coding of characters which is 2 bytes at most. And int is 2 bytes at least. The (char*) should be read is (void*). Tcl_CreateHashTable has a very generic interface to keys, because of the various possible key-types. As the hash is created with one-word-keys an (int*) is ok, even in the guise of a (char*). I agree that we should change the variable names to match the core style.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [e2631b4ead] (rid 87613) by dkf on 2001-02-12 16:52:55:
- icomment:
Patch Code - Modified - New Version The (char *) is correct as that because that is how hash tables configured with TCL_ONE_WORD_KEYS are used (as documented on the manual page.) The assumption that UNICODE characters are sensibly castable to int is pretty good; it certainly works for UCS-16 and will actually be good in practise (even on 64-bit architectures as deployed) up to UCS-32 which is, incidentally, not supported by the rest of the core anyway. :^) Variable names in patch have been modified to match core naming scheme. My fault for naming them according to the scheme which I use in my own programs instead...
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [2e4d9bec86] (rid 119203) by dgp on 2001-02-13 00:15:46:
- icomment:
But why the intermediate type of int ? Why not a direct cast: Tcl_UniChar -> (char *)
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [d687a4cfe4] (rid 123823) by dgp on 2001-02-13 05:39:03:
- icomment:
Note some more followups posted directly to the tcl-bugs mailing list: http://www.geocrawler.com/lists/3/SourceForge/7374/0/5149633/ http://www.geocrawler.com/lists/3/SourceForge/7374/0/5151315/
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [151c297472] (rid 124511) by dkf on 2001-02-15 23:21:16:
- assignee changed to: "dkf"
- icomment:
Patch Code - Modified - New Version Hopefully those strange 64-bit beasties will like this version better.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
Ticket change [3a1716688d] (rid 112505) by dgp on 2001-02-16 00:12:54:
- icomment:
Patch Code - Modified - New Version I modified the date in the ChangeLog entry, and made a change to one of the comments ("integral type" rather than "numeric type"). Looks like it's ready to go now. Make it so. Nice work. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [b0a88feb90] (rid 98025) by dkf on 2001-02-16 16:22:47:
- closedate changed to: "2001-02-16T09:22:47"
- closer changed to: "dkf"
- status changed to: ""
Ticket change [0b928be340] (rid 114017) by dkf on 2001-02-16 16:27:17:
- closedate changed to: "2001-02-16T09:27:17"
- closer changed to: "dkf"
- status changed to: "Closed"
Ticket change [be801e86d7] (rid 148412) by dkf on 2016-08-22 08:11:46:
- closedate changed to: "2457622.84151419"
- comment changed to:
This patch makes splitting a string into single characters use only as many objects as there are distinct characters in the input string. It boosts performance in the short string case, which is nice, but turns the long string case from intractable into quite feasable. :^) All tests in the current CVS HEAD are passed with this patch applied.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- severity changed to: "Minor"
- subsystem changed to: "18. Commands M-Z"