Re: bug in svn version
"Jonathan Ellis" <[email protected]>
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 20 Apr 2006 19:35:57 +0200, "Michele Petrazzo" <[email protected]> said: > > I don't think "super" is a sufficient reason to break 2.2 > > compatibility. > > Yes, I'm wrong. "super" was introduced into 2.2, sorry. ... and so were new style classes, now that I check. So we wouldn't need the try/except for the __metaclass__ line. > Yes, also I don't like this, but why don't add the class foo(object) ? Why edit every class definition (and there are a lot in Spyce!) when you could just add the __metaclass__ line? If you really want to avoid the possibility of someone coming along and forgetting (object) when he adds another class, that's really the best solution. > > What's your reasoning behind using the forking server? > > Just today, I and other python-Italian-users on it.comp.lang.python, was > talking about the performances of various web-frameworks, and I publish > some benchmark about spyce on my platforms and It can be seen that it > *very slow* with concurrency="fork", so I don't want to use it... > > You can find them here (ok this are in Italian language, but there are > only numbers... If you want I can translate it ) > > http://tinyurl.com/fxrss > http://tinyurl.com/e8ll2 Well, nobody *wants* to be slow, but here if I'm reading this right that just means you had ~100 req/s with Spyce vs ~1000/s with PHP, for instance. 100/s means 8.6 million per day, so for a "real" page, Spyce isn't the bottleneck; your code is. (And Spyce's more advanced abilities mean it's a lot easier to be able to serve 1M+ pages with Spyce than with PHP et al, which is what really matters IMO.) -Jonathan -- C++ is history repeated as tragedy. Java is history repeated as farce. --Scott McKay ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642