Ignore:
Timestamp:
Mar 17, 2000, 12:51:26 AM (26 years ago)
Author:
bird
Message:

More performance improovements:

  • Cache entire directories. When the number of scanned files are > 25 in one file specification.
  • Lowercases all names added to the trees and uses case sentivie key searches.
  • Added a tree of cached directories so that these are not searched with the slow DosQueryPathInfo too.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/fastdep/avl.h

    r3129 r3132  
    1 /* $Id: avl.h,v 1.1 2000-03-16 21:10:10 bird Exp $
     1/* $Id: avl.h,v 1.2 2000-03-16 23:51:25 bird Exp $
    22 *
    33 * AVL-Tree (lookalike) declaration.
     
    88 * one type of trees within one program (module).
    99 *
    10  * TREETYPE: Case Insensitive Strings (Key is pointer).
     10 * TREETYPE: Case Sensitive Strings (Key is pointer).
    1111 *
    1212 *
     
    3232 * AVL Compare macros
    3333 */
    34 #define AVL_L(key1, key2)  (stricmp(key1, key2) <  0)
    35 #define AVL_LE(key1, key2) (stricmp(key1, key2) <= 0)
    36 #define AVL_G(key1, key2)  (stricmp(key1, key2) >  0)
    37 #define AVL_GE(key1, key2) (stricmp(key1, key2) >= 0)
    38 #define AVL_E(key1, key2)  (stricmp(key1, key2) == 0)
    39 #define AVL_NE(key1, key2) (stricmp(key1, key2) != 0)
     34#define AVL_L(key1, key2)  (strcmp(key1, key2) <  0)
     35#define AVL_LE(key1, key2) (strcmp(key1, key2) <= 0)
     36#define AVL_G(key1, key2)  (strcmp(key1, key2) >  0)
     37#define AVL_GE(key1, key2) (strcmp(key1, key2) >= 0)
     38#define AVL_E(key1, key2)  (strcmp(key1, key2) == 0)
     39#define AVL_NE(key1, key2) (strcmp(key1, key2) != 0)
    4040
    4141
Note: See TracChangeset for help on using the changeset viewer.