[Stackless] Stackless Python problem. Help respectfully Requested.

Kusanagi kusanagi1977 at aim.com
Sat Jul 15 12:55:01 CEST 2006


Attached is a file name 's.py'  please use it from a command prompt for the time data. 

Hi All !

    I have a little piece of code i.e. 's.py' that contains to methods to download webpage a stackless and a non-stackless method. The problem that I am having is that I can not see a speed increase from the old method to the new. 

    I would really appreciate anyone that is willing to look over my code and tell me what I am doing wrong. I could be nuts thinking that I can get anymore speed out of the function that I am calling, but hey I program, so I am already nuts, a little more speed never hurts, well that's my opinion at least.

    What I am trying to do is simple, well at least I think it is. 

    The old function is called once and does its 'thing' and then it is called again with a new set of variables. This is of course going to be slow. 

    What I want is a series of tasklets that creates several copies of the same function and completes faster. 

Old example: 

DATA --> FUNCTION --> completes and then call the function again. 
DATA --> FUNCTION. --> completes and then call the function again.

What I want is several tasklets to call a local version of the function and execute them simultaneously. Completing the overall task a lot faster. 

TASKLET 1 - FUNCTION
TASKLET 2 - FUNCTION
TASKLET 3 - FUNCTION
TASKLET 4 - FUNCTION

I really appreciate any and all help regarding this matter, if you think I am nuts please let me know. I am a speed freak. 


Regards, Steven - Hopeless Python Nut and a hopeful Stackless python fan. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stackless.com/pipermail/stackless/attachments/20060715/7401783e/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: s.py
URL: <http://www.stackless.com/pipermail/stackless/attachments/20060715/7401783e/attachment.txt>
-------------- next part --------------
_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless


More information about the Stackless mailing list