dpatel      03/02/07 18:01:28

  Modified:    live/gcc3/gcc tree.c tree-inline.c
  Log:
  Simple hashtable improvements for build time speed up.
  Reviewed by: Zem Laski
  
  Revision  Changes    Path
  1.54      +2 -1      src/live/gcc3/gcc/tree.c
  
  Index: tree.c
  ===================================================================
  RCS file: /cvs/Darwin/src/live/gcc3/gcc/tree.c,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- tree.c    2003/02/04 03:12:59     1.53
  +++ tree.c    2003/02/08 02:01:26     1.54
  @@ -108,7 +108,8 @@
   };
   
   /* Initial size of the hash table (rounded to next prime).  */
  -#define TYPE_HASH_INITIAL_SIZE 1000
  +/* APPLE LOCAL fsf candidate */
  +#define TYPE_HASH_INITIAL_SIZE 4111
   
   /* Now here is the hash table.  When recording a type, it is added to
      the slot whose index is the hash code.  Note that the hash table is
  
  
  
  1.31      +8 -2      src/live/gcc3/gcc/tree-inline.c
  
  Index: tree-inline.c
  ===================================================================
  RCS file: /cvs/Darwin/src/live/gcc3/gcc/tree-inline.c,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- tree-inline.c     2002/12/08 00:37:56     1.30
  +++ tree-inline.c     2003/02/08 02:01:26     1.31
  @@ -1433,12 +1433,18 @@
   
     /* Replace all calls to inline functions with the bodies of those
        functions.  */
  -  id.tree_pruner = htab_create (37, htab_hash_pointer,
  +  /* APPLE LOCAL begin fsf candidate */
  +  if (!id.tree_pruner)
  +  id.tree_pruner = htab_create (131, htab_hash_pointer,
                                htab_eq_pointer, NULL);
  +  /* APPLE LOCAL end fsf candidate */
     expand_calls_inline (&DECL_SAVED_TREE (fn), &id);
   
     /* Clean up.  */
  -  htab_delete (id.tree_pruner);
  +  /* APPLE LOCAL begin fsf candidate */
  +  /* htab_delete (id.tree_pruner); */
  +  htab_empty (id.tree_pruner);
  +  /* APPLE LOCAL end fsf candidate */
     if (DECL_LANG_SPECIFIC (fn))
       {
         tree ifn = make_tree_vec (VARRAY_ACTIVE_SIZE (id.inlined_fns));
  
  
  


Reply via email to