Mail Archives: djgpp-workers/1997/12/02/19:24:21
> struct {
> int fd;
> __FSEXT_function* func;
> void* data;
> };
>
> This should be able to fit 340 or so on a single page. I'd say use fd as
> the hash key. The big drawback is the penalty for updating and searching
> the list, possibly twice. Any idea if the average case under two tables is
Better yet, drop the fd member and make an array[256] of them (use fd
as the index). 256 fds = 512*4 bytes = 2048, well within a page size.
Worst case would be four pages (table spans two pages, lookup
functions span two pages) but that's worst case already.
- Raw text -