Newsgroups: news.software.b Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Enhanced dbz for SunOS 4.0 Message-ID: <1989Jun28.180430.2743@utzoo.uucp> Organization: U of Toronto Zoology References: <17059@elroy.Jpl.Nasa.Gov> Date: Wed, 28 Jun 89 18:04:30 GMT In article <17059@elroy.Jpl.Nasa.Gov> david@elroy.Jpl.Nasa.Gov (David Robinson) writes: >Below is a SunOS 4.0 specific enhancement to dbz that mmap()'s >the history file and .pag file into main memory and accesses it >directly instead of through lseek() and read()... One of our early C News users has modified dbz to do roughly the same thing portably, by just keeping everything in memory and writing it out at the end. I want to take a hard look at his code before promising anything, but it may be part of the next patch. On machines with plenty of address space and physical memory, apparently it really makes things fly. (C expire, in particular, is *very* dbm-bound and should benefit a lot from this.) >lcase() [which was broken] was replaced by strcasecmp() from the >4.3BSD distribution archives on UUNET. Note that if you're trying this dbz in C News, you want to comment out the lcase/strcasecmp entirely. C News doesn't do the case mapping. -- NASA is to spaceflight as the | Henry Spencer at U of Toronto Zoology US government is to freedom. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu