[Twisted-Python] Re: [Twisted-commits] blocking is the mindkiller

Jp Calderone exarkun at meson.dyndns.org
Sat Dec 14 22:20:43 EST 2002


On Sun, Dec 15, 2002 at 03:22:26AM +0100, Matthias Urlichs wrote:
> Hi,
> 
> Glyph Lefkowitz:
> > No... *threading* is the mindkiller.
> > 
> Sometimes you can't work well without it. Database accesses are one common
> example; so are file accesses across a network.
> 
> That being said, anything you only do _once_ shouldn't require threading -- 
> and importing stuff certainly qualifies. An additional half-second

*cough*tenseconds*cough*

> slowdown sometime after startup doesn't hurt anybody.

  twisted.python.plugin.getPlugIns *should* do caching, but I'm not up to
working out just how that should work; the threaded hack was committed in a
moment of laziness (and it is now in my code instead of twisted, even though
it is probably "correct" ;)  I could also see some neat ways to break it up
w/ a generator and have it called piecewise... mmh, but threading works for
me for the moment; maybe some other time.

> 
> -- 
> Matthias Urlichs     |     noris network AG     |     http://smurf.noris.de/
> -- 
> To think is to differ.
> 		-- Clarence Darrow, Scopes trial, July 1925



-- 
"If you find a neighbor in need, you're responsible for serving that
neighbor in need, you're responsible for loving a neighbor just like you'd
like to love yourself." -- George W. Bush, Sept. 16, 2002
--
 12:00am up 4 days, 22:17, 4 users, load average: 0.08, 0.09, 0.04
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20021214/3cd04485/attachment.pgp 


More information about the Twisted-Python mailing list