Python Performance vs. C++ in a Complex System

Elliott Chapin echapin at sympatico.ca
Sun Apr 15 16:53:50 EDT 2001


So how does Python do context switching, [anybody]?

-- 

---------------------------------------------------------------

Elliott Chapin         http:// www3.sympatico.ca/echapin
  "Doug Fort" <dougfort at downright.com> wrote in message news:3ADA06B9.A2292921 at downright.com...
    
  Our website load testing system system, http://www.stressmy.com is very much like an agent-based simulation.  My experience in running  on Linux is that the system bogs down on a few hundred threads.  (This is the 2.2 kernel, 2.4 is supposed to be better).  We recently started using select() in a single threaded model for this reason.  What platform are you running on?  How many threads did your prototype manage? 
  ...........................................................................................snipped

  In retrospect, it's the lack of a true continuation model in C++ which is to 
  blame. The C++ implementation suffers from extensive context-switching 
  burden, having to frequently swap out all the registers and manage the 
  stacks for all the threads, whereas Python-with-Continuations does not. 

    at the heart of the Python system was an optimized C-extension. 

    Joe Kraska 
    BBN Technologies 
    San Diego CA

-- 
Doug Fort 
Senior Meat Manager 
Downright Software LLC
    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20010415/383d3b7c/attachment.html>


More information about the Python-list mailing list