[17101] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: [RFC][PATCH] krb5 => libverto main loop

daemon@ATHENA.MIT.EDU (Tom Yu)
Tue Aug 23 09:23:11 2011

To: Simo Sorce <simo@redhat.com>
From: Tom Yu <tlyu@mit.edu>
Date: Tue, 23 Aug 2011 09:23:06 -0400
In-Reply-To: <1314100897.20296.47.camel@willson.li.ssimo.org> (Simo Sorce's
	message of "Tue, 23 Aug 2011 08:01:37 -0400")
Message-ID: <ldvobzg45z9.fsf@cathode-dark-space.mit.edu>
MIME-Version: 1.0
Cc: Ken Raeburn <raeburn@mit.edu>, "krbdev@mit.edu" <krbdev@mit.edu>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu

Simo Sorce <simo@redhat.com> writes:

> Just bundle an existing one, don't NIH please.

Which one would you recommend bundling?  It looks like the smallest
event loop library might be libev, but I haven't done a thorough
comparison.

Also, it's not NIH; I want something minimal that won't cause us much
additional maintenance overhead if we bundle it.  As far as I can
tell, all other portable event loop libraries have more dependencies,
support multiple kernel file descriptor monitoring interfaces, etc.

By choosing a single interface -- probably select(), or poll() if we
believe that poll() is better and that nobody who wants to build our
code from source needs to build on a system that lacks poll() -- we
can keep code size and complexity down.  We can change course and
bundle a small existing library instead, if it turns out that the
effort of rolling our own highly constrained event loop becomes
significant.  (I doubt that it will unless we go beyond a single
interface.)

What I'm envisioning doesn't need to have the same performance or
features of an existing event loop library; it just has to be no worse
than what we have right now in the pre-libverto world.  I hope that
people who need more performance will not find it too much trouble to
build and use an existing event loop library for use with libverto.
_______________________________________________
krbdev mailing list             krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev

home help back first fref pref prev next nref lref last post