diff options
author | wpaul <wpaul@FreeBSD.org> | 1996-06-27 05:42:01 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1996-06-27 05:42:01 +0000 |
commit | 0a24e0fafd396f63fa8050f6f9cbc2ebcab322d7 (patch) | |
tree | 3fc09362b6356d1ee5d879b9c6636b97fb3826c0 /libexec/mknetid/hash.h | |
parent | b32a0b2af85cea66591433649bda13681bf891a6 (diff) | |
download | FreeBSD-src-0a24e0fafd396f63fa8050f6f9cbc2ebcab322d7.zip FreeBSD-src-0a24e0fafd396f63fa8050f6f9cbc2ebcab322d7.tar.gz |
Improve performance with very large user databases by increasing
hash table size from 256 to 1024.
Generate output that looks more like the SunOS mknetid: uses a space
instead of tabs for white space.
Fix typo in comment in hash.h: Groupit -> Groupid.
Diffstat (limited to 'libexec/mknetid/hash.h')
-rw-r--r-- | libexec/mknetid/hash.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libexec/mknetid/hash.h b/libexec/mknetid/hash.h index 1023e3b..58c64d2 100644 --- a/libexec/mknetid/hash.h +++ b/libexec/mknetid/hash.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995 + * Copyright (c) 1995, 1996 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -29,10 +29,10 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: hash.h,v 1.3 1996/06/24 22:48:32 wpaul Exp $ + * $Id: hash.h,v 1.1.1.1 1996/06/25 20:26:38 wpaul Exp $ */ -/* Groupit entry hung off a member_entry node. */ +/* Groupid entry hung off a member_entry node. */ struct grouplist { gid_t groupid; struct grouplist *next; @@ -46,8 +46,8 @@ struct member_entry { }; /* Table size (chosen arbitrarily). Not too big, not too small. */ -#define TABLESIZE 256 -#define HASH_MASK 0x000000FF +#define TABLESIZE 1024 +#define HASH_MASK 0x000003FF extern void mstore __P(( struct member_entry ** , char *, int, int )); extern struct grouplist *lookup __P(( struct member_entry **, char * )); |