Re: [Twisted-Python] Stackless.py and Twisted

2010-06-09 Thread Daniel Griffin
I dont know if twisted can really be counted as a scheduler. Its purpose is more to do with nonblocking IO. To improve IO performance in stackless you would need to add multiplexing to its scheduler(if it doesnt already have it). http://eventlet.net/ seems to to this. Dan On Wed, Jun 9, 2010 at 9

Re: [Twisted-Python] SQLAlchemy and Twisted

2010-05-09 Thread Daniel Griffin
45 AM, Phil Mayers wrote: > On 05/09/2010 07:07 AM, Daniel Griffin wrote: > > If you let SQLAlchemy block twisted would there be any impact besides > > performance? > > Depends how long it blocks for, and what else your process is doing. > > With the reactor blocked: >

Re: [Twisted-Python] SQLAlchemy and Twisted

2010-05-08 Thread Daniel Griffin
If you let SQLAlchemy block twisted would there be any impact besides performance? Dan On Fri, May 7, 2010 at 1:35 PM, wrote: > On 03:37 pm, > drwxrwxr.x+twistedm...@gmail.comwrote: > >>(yield resultset[10:20]).sort(Sort.ASC) > >> > >>assuming a new enough version of Python. > > > >I wonder if

Re: [Twisted-Python] Plain windows sockets and twisted

2010-01-17 Thread Daniel Griffin
lyph Lefkowitz wrote: > > On Jan 17, 2010, at 10:45 PM, Daniel Griffin wrote: > > > Here are two tiny apps. They run perfectly on OSX and error like this on > windows: > > > > Log conenction [Failure instance: Traceback (failure with no frames): > > wisted.int

Re: [Twisted-Python] Plain windows sockets and twisted

2010-01-17 Thread Daniel Griffin
case they are easier to > deal with. > > I will create a chunk of sample code and send it to the list. > > Thanks, > Dan > > > > On Sun, Jan 17, 2010 at 6:52 PM, Glyph Lefkowitz > wrote: > >> >> On Jan 17, 2010, at 6:25 PM, Daniel Griffin wrote: >

Re: [Twisted-Python] Plain windows sockets and twisted

2010-01-17 Thread Daniel Griffin
Thank you for the response. I am using twisted 9.0 and tried 8.2. The python version is 2.6. When I print the reason sent to connection lost I get "[Failure instance: Traceback (failure with no frames): wrote: > > On Jan 17, 2010, at 6:25 PM, Daniel Griffin wrote: > > > I a

[Twisted-Python] Plain windows sockets and twisted

2010-01-17 Thread Daniel Griffin
Hi, I am using twisted in a cross-platform manner. I have written both the client and server. The client is twisted and the server uses python threads. I am using the select reactor and plain old TCP connections. I encode my messages to JSON to send them. On Windows I get tons of un-clean connect

Re: [Twisted-Python] Twisted Performance

2009-10-25 Thread Daniel Griffin
Sure, I am not really finished with it yet. When I do get done I will do a write up. Dan On Sun, Oct 25, 2009 at 12:15 AM, Glyph Lefkowitz wrote: > On Oct 24, 2009, at 3:47 PM, Daniel Griffin wrote: > > > I ported my thread based socket code to twisted and have been happy > &g

Re: [Twisted-Python] Twisted Performance

2009-10-24 Thread Daniel Griffin
Hi everyone, I ported my thread based socket code to twisted and have been happy with my results. To re-hash, my code creates a connection then waits for the other end to do something and respond, each connection takes a different amount of time. I went from 3-5 connections completed per second to

Re: [Twisted-Python] Twisted Performance

2009-10-14 Thread Daniel Griffin
Sounds good, I am going to try to get this up and running over the next few days. I'll get back with some results. Dan On Wed, Oct 14, 2009 at 7:14 AM, Steve Steiner (listsin) < list...@integrateddevcorp.com> wrote: > > On Oct 14, 2009, at 4:55 AM, Laurens Van Houtven wrote: > > Personally I'm

[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