Hi to all Thank you for all the answers concerning the topic.
The deepcopy testing script in issue 767 [1], is working faster in PyPy than in CPython, but deepcopy is run on a list of numbers. BUT, PyWPS runs a lot of DOM functions and deepcopy calls that pass DOM Elements as argument. Just to add my 2cents, it seems that a deepcopy of a complexer object (compared to a number list) is slower in PyPy I've managed to replicate the problem in a small script [2] that is slower in PyPy: python 2.7.1+ : 0.3057 s pypy1.6 (jit): 1.42s pypy-c-1.6.svn: 1.23s The pypy-c-1.6-svn is a compiled version from the SVN and its compilation options can be found here [3] . The tests were done in 32bit machine Can someone give a look at the testing script and determine why is it slow ?! Thank you for the support, and I must say that PyPy is an amazing project !!!! All the Best Jorge [1] https://bugs.pypy.org/issue767 [2] http://pastebin.com/rehXtTyM [3] http://pastebin.com/FhLLNxMT -------------------------------------------------------------------------------- Plymouth Marine Laboratory Registered Office: Prospect Place The Hoe Plymouth PL1 3DH Website: www.pml.ac.uk Click here for PML Annual Review Registered Charity No. 1091222 PML is a company limited by guarantee registered in England & Wales company number 4178503 Please think before you print -------------------------------------------------------------------------------- This e-mail, its content and any file attachments are confidential. If you have received this e-mail in error please do not copy, disclose it to any third party or use the contents or attachments in any way. Please notify the sender by replying to this e-mail or e-mail fori...@pml.ac.uk and then delete the email without making any copies or using it in any other way. The content of this message may contain personal views which are not the views of Plymouth Marine Laboratory unless specifically stated. You are reminded that e-mail communications are not secure and may contain viruses. Plymouth Marine Laboratory accepts no liability for any loss or damage which may be caused by viruses. --------------------------------------------------------------------------------
from xml.dom.minidom import parseString import copy import time dom1=parseString("<a><b/><b/><b/></a>") ini=time.time() bElement=dom1.getElementsByTagName("b") for i in xrange(0,1000): copy.deepcopy(bElement) print "Time:",time.time()-ini """ 32bit ubuntu 11.04 virtual machine using virtual box python 2.7.1+ Time: 0.305788993835 pypy1.6 (with jit) Time: 1.42044305801 pypy-c-1.6-svn (http://pastebin.com/FhLLNxMT) Time: 1.2382171154 """
_______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev