|
From: Andre R. <and...@us...> - 2004-11-20 23:04:03
|
Update of /cvsroot/frontierkernel/Frontier/Common/headers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16602/Common/headers Modified Files: Tag: New_Tables_Experiment-branch lang.h tableinternal.h Log Message: All callers of hashresort are now expected to supply the position of the node in the current sort order if they only want us to resort that node. This eliminates a costly linear search through the array containing the sort order. The callers have been updated to determine this index before making the change that causes the node to become unsorted. Index: lang.h =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/headers/lang.h,v retrieving revision 1.4.2.3 retrieving revision 1.4.2.4 diff -C2 -d -r1.4.2.3 -r1.4.2.4 *** lang.h 15 Nov 2004 20:52:08 -0000 1.4.2.3 --- lang.h 20 Nov 2004 23:03:18 -0000 1.4.2.4 *************** *** 1003,1007 **** extern boolean hashtablevisit (hdlhashtable, langtablevisitcallback, ptrvoid); ! extern boolean hashresort (hdlhashtable, hdlhashnode); extern boolean hashinversesearch (hdlhashtable, langinversesearchcallback, ptrvoid, bigstring); --- 1003,1011 ---- extern boolean hashtablevisit (hdlhashtable, langtablevisitcallback, ptrvoid); ! #ifdef fltablesortorderisarray ! extern boolean hashresort (hdlhashtable, hdlhashnode, long); ! #else ! extern boolean hashresort (hdlhashtable, hdlhashnode); ! #endif extern boolean hashinversesearch (hdlhashtable, langinversesearchcallback, ptrvoid, bigstring); Index: tableinternal.h =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/headers/tableinternal.h,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** tableinternal.h 9 Oct 2004 21:11:01 -0000 1.1 --- tableinternal.h 20 Nov 2004 23:03:19 -0000 1.1.2.1 *************** *** 199,203 **** extern boolean tablebringtofront (hdlhashtable); ! extern boolean tableresort (hdlhashtable, hdlhashnode); extern boolean tablegetsortorder (hdlhashtable, short *); --- 199,207 ---- extern boolean tablebringtofront (hdlhashtable); ! #ifdef fltablesortorderisarray ! extern boolean tableresort (hdlhashtable, hdlhashnode, long); ! #else ! extern boolean tableresort (hdlhashtable, hdlhashnode); ! #endif extern boolean tablegetsortorder (hdlhashtable, short *); |