Manifest of check-in
[946f57278c]
- * generic/tclDictObj.c: Changed the underlying implementation of the
hash table used in dictionaries to additionally keep all entries in
the hash table in a linked list, which is only ever added to at the
end. This makes iteration over all entries in the dictionary in
key insertion order a trivial operation, and so cleans up a great deal
of complexity relating to dictionary representation and stability of
iteration order.
by
dkf on
2007-11-20 20:43:08.
B 1dccbd66c85f79dc81f79e8e30d8cdbe7ee16445
C \t*\sgeneric/tclDictObj.c:\sChanged\sthe\sunderlying\simplementation\sof\sthe\n\thash\stable\sused\sin\sdictionaries\sto\sadditionally\skeep\sall\sentries\sin\n\tthe\shash\stable\sin\sa\slinked\slist,\swhich\sis\sonly\sever\sadded\sto\sat\sthe\n\tend.\sThis\smakes\siteration\sover\sall\sentries\sin\sthe\sdictionary\sin\n\tkey\sinsertion\sorder\sa\strivial\soperation,\sand\sso\scleans\sup\sa\sgreat\sdeal\n\tof\scomplexity\srelating\sto\sdictionary\srepresentation\sand\sstability\sof\n\titeration\sorder.\n
D 2007-11-20T20:43:08
F ChangeLog e0c2399a12c86beda96ca845a500012d52025fa9
F doc/DictObj.3 68885c00ff7c0ab9613eccff191823643fd8c612
F doc/Hash.3 22fc2292d08886fd1ae0254e72073665e3282e8d
F doc/dict.n 8515d405705f0f6261ba23191258d5940d0f050e
F generic/tcl.h 6684f6ce867f970a38f6d1832c5275733d817e2f
F generic/tclConfig.c 4cde02a69312ecea20c4dd23a14fd8a3b716f4a3
F generic/tclDictObj.c 351786d161b7c3e243e90c31ffc18777f7e299af
F generic/tclInt.h c339e88f3005a9383ae532e8c58ba22f040a07e5
F generic/tclObj.c 7ffa15cf5d541ab6fa834d7d10243a5b21d506e9
F tests/init.test 849d3102abbb3b3eb98f5d3c860fd8464b215352
F tests/ioCmd.test 37770688269792660fdec43082532fe76f5f5826
F tests/string.test 558530ceaefe0cfdbde702e034445908bded37ef
P 0adaecf22b2427f3365df9c4f77337a5f3e409b6
U dkf
Z 73a5d72472523332f62e44c89ba68e22