lkml.org 
[lkml]   [2001]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: State of the new config & build system
    On Fri, Dec 28, 2001 at 08:42:44PM +1100, Keith Owens wrote:
    > "All" I need to do is have one server process that reads the big list
    > once and the other client processes talk to the server. Much less data
    > involved means faster conversion from absolute to standardized names.

    Actually, if you use the mdbm code, you can have a server process which
    reads the data, stashes it in the db, touchs ./i_am_done, and exits.
    "client" processes do a

    while (!exists("i_am_done")) usleep(100000);
    m = mdbm_open("db", O_RDONLY, 0, 0);
    val = mdbm_fetch_str(m, "key");
    etc.

    No sockets, no back and forth, runs at mmap speed.

    If you tell me what the data looks like that needs to be in the DB, i.e.,
    how to get it, I'll code you up the "server" side.
    --
    ---
    Larry McVoy lm at bitmover.com http://www.bitmover.com/lm
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:14    [W:4.157 / U:0.472 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site