date and time created 83/08/05 13:34:37 by sam
[unix-history] / usr / src / old / dbx / names.c
index eb4072b..72e0b87 100644 (file)
@@ -1,6 +1,6 @@
 /* Copyright (c) 1982 Regents of the University of California */
 
 /* Copyright (c) 1982 Regents of the University of California */
 
-static char sccsid[] = "@(#)@(#)names.c 1.1 %G%";
+static char sccsid[] = "@(#)names.c 1.3 %G%";
 
 /*
  * Name are the internal representation for identifiers.
 
 /*
  * Name are the internal representation for identifiers.
@@ -39,7 +39,7 @@ private Name nametable[HASHTABLESIZE];
  * doesn't cause many a page fault.
  */
 
  * doesn't cause many a page fault.
  */
 
-#define CHUNKSIZE 1000
+#define CHUNKSIZE 200
 
 typedef struct Namepool {
     struct Name name[CHUNKSIZE];
 
 typedef struct Namepool {
     struct Name name[CHUNKSIZE];
@@ -48,7 +48,6 @@ typedef struct Namepool {
 
 private Namepool namepool = nil;
 private Integer nleft = 0;
 
 private Namepool namepool = nil;
 private Integer nleft = 0;
-private struct Namepool zeropool;
 
 /*
  * Given an identifier, convert it to a name.
 
 /*
  * Given an identifier, convert it to a name.
@@ -102,7 +101,7 @@ Boolean isallocated;
      */
     if (nleft <= 0) {
        newpool = new(Namepool);
      */
     if (nleft <= 0) {
        newpool = new(Namepool);
-       *newpool = zeropool;
+       bzero(newpool, sizeof(newpool));
        newpool->prevpool = namepool;
        namepool = newpool;
        nleft = CHUNKSIZE;
        newpool->prevpool = namepool;
        namepool = newpool;
        nleft = CHUNKSIZE;