Clark,
ideally you'd be able to use Python's profile module, but 
unfortunately it doesn't work with threaded programs.  So 
you're stuck with adding statements like:
  print 'Before [fill in the blank]:', time.time()
  print 'After [fill in the blank]:', time.time()
around the bits you suspect might be bottlenecks.  An 
alternative is to try to detach your servlet from WebKit 
and run it standalone in a non-threaded process with the 
profile module.  

Regardless of how you profile the servlet, you should 
benchmark its performance as it is now -- using 
apache-bench or a similar tool  -- so you know if your 
optimizations are actually working.

I'm curious ... what sort of execution speeds are you 
getting?  

Tavis

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to