[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua Socket
- From: gary ng <garyng2000@...>
- Date: Sat, 21 Jul 2007 05:09:55 -0700 (PDT)
--- Ketmar Dark <firstname.lastname@example.org> wrote:
> actually passing data with pipes or unix-domain
> sockets is very fast.
> and you can make an SQL server helper not to spawn
> each time you need a
> data. just let it wait for some time for another
> request before
> shutting down. then you can write SQL-helper app
> with LuaTask and don't
> care about it's crashes ('cause it will be restarted
> anyway) but have a
> very little slowdown for continuous requests.
That I beg to differ. It is the additional protocol
that is needed between the helper and the main thread.
This can create quite some string in lua to pass back
and forth, in addition to the needed data.
So If I have a 1M dataset, within a single thread,
that would be 1M, with this approach, it needs 2X as
more at least.
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7