[Twisted-Python] CalendarServer

2009-10-13 Thread Fernando Ruza Rodriguez
Hi, sorry for the cross-posting. I'm trying to compile CalendarServer and it has a script which get Twisted from subversion here: svn.twistedmatrix.com/svn/Twisted/branches/dav-take-two-3081-4 Also if I try to get latest SVN of Twisted as says in the page http://svn.twistedmatrix.com/ I get the

[Twisted-Python] Twisted Python vs. "Blocking" Python: Weird performance on small operations.

2009-10-13 Thread Dirk Moors
Hello Everyone! My name is Dirk Moors, and since 4 years now, I've been involved in developing a cloud computing platform, using Python as the programming language. A year ago I discovered Twisted Python, and it got me very interested, upto the point where I made the decision to convert our platfor

Re: [Twisted-Python] Twisted Python vs. "Blocking" Python: Weird performance on small operations.

2009-10-13 Thread Valeriy Pogrebitskiy
Dirk, Using deferred directly in your bin2intAsync() may be somewhat less efficient than some other way described in Recipe 439358: [Twisted] From blocking functions to deferred functions recipe (http://code.activestate.com/recipes/439358/) You would get same effect (asynchronous execution

Re: [Twisted-Python] Twisted Python vs. "Blocking" Python: Weird performance on small operations.

2009-10-13 Thread Reza Lotun
Hi Dirk, I took a look at your code sample and got the async benchmark to run with the following values: *** Starting Asynchronous Benchmarks. -> Asynchronous Benchmark (1 runs) Completed in 0.000181913375854 seconds. -> Asynchronous Benchmark (10 runs) Completed in 0.000736951828003 seconds.

Re: [Twisted-Python] Twisted-Python Digest, Vol 67, Issue 22

2009-10-13 Thread Dirk Moors
functions into atomic operations while thinking that it would > > actually improve the performance while on the contrary it did the > > opposit. > > > > I personaly suspect that I lose my cpu-cycles to the reactor > > scheduling the deferred-callbacks. Would that as

Re: [Twisted-Python] Twisted-Python Digest, Vol 67, Issue 23

2009-10-13 Thread Dirk Moors
s. > > > -> Asynchronous Benchmark (100 runs) Completed in 34.513114 > > > seconds. > > > -> Asynchronous Benchmark (1000 runs) Completed in 34.585657 > > > seconds. > > > -> Asynchronous Benchmark (1 runs) Completed in 35.282924 > > >

Re: [Twisted-Python] Twisted-Python Digest, Vol 67, Issue 22

2009-10-13 Thread Valeriy Pogrebitskiy
eed these conversion functions is in marshalling/ > protocol reading and writing throughout the cloud platform, which > implies that these functions will be called constantly so I need > them to be superfast. I always though I had to split the entire > marshalling process into small ato

[Twisted-Python] python-twisted-akonadi and akonadi-gtk

2009-10-13 Thread Stephen Kelly
Hi, Twisted is a framework for event driven applications. Typically client- server architectures can be implemented with Twisted. Existing servers and clients exist for a long list of protocols and communication devices including HTTP, SSH, and notably for my purpose, IMAP and UNIX sockets. It

Re: [Twisted-Python] Twisted-Python Digest, Vol 67, Issue 23

2009-10-13 Thread Steve Steiner (listsin)
On Oct 13, 2009, at 10:32 AM, Dirk Moors wrote: > Hello Reza, > > I tried the solution you provided and I have to say, that changed a > lot! > You gave me a better understanding of how things work with Twisted, > and I really appreciate your response! Can you show the new code and benchmark

Re: [Twisted-Python] CalendarServer

2009-10-13 Thread mardiros
Fernando Ruza Rodriguez a écrit : > ~$ svn co svn://svn.twistedmatrix.com/svn/Twisted/trunk Twisted > svn: Cannot be possible to connect to 'svn.twistedmatrix.com': time > > Thanks. > > Fernando. > > I have the same problem at my office, svn port is closed by the firewall ( Port 3690 ) http://

[Twisted-Python] How to find out if exceptions are being raised in your errBack?

2009-10-13 Thread Steve Steiner (listsin)
I've been hunting down a problem that I've finally found the cause of and I'd like to know what's the Twisted way to catch this "error within the code handling the error" type of error. Basically, in one branch of the errBack, there was a typo. A simple typo that caused an unhandled NameEr

[Twisted-Python] Twisted Performance

2009-10-13 Thread Daniel Griffin
Hi, I am new to twisted and have been having trouble finding out information about twisted's performance. I have a fairly simple setup where I need to open a bunch of TCP connections that last for varying amounts of time but dont do much. I have tried using threads(got GILed to death) and Processe

Re: [Twisted-Python] Twisted Performance

2009-10-13 Thread Steve Steiner (listsin)
On Oct 13, 2009, at 10:44 PM, Daniel Griffin wrote: Hi, I am new to twisted and have been having trouble finding out information about twisted's performance. I have a fairly simple setup where I need to open a bunch of TCP connections that last for varying amounts of time but dont do muc

Re: [Twisted-Python] How to find out if exceptions are being raised in your errBack?

2009-10-13 Thread Glyph Lefkowitz
On Tue, Oct 13, 2009 at 8:02 PM, Steve Steiner (listsin) < list...@integrateddevcorp.com> wrote: > I've been hunting down a problem that I've finally found the cause of > and I'd like to know what's the Twisted way to catch this "error > within the code handling the error" type of error. > The r