Re: [Modeling-users] Fetching raw rows
Status: Abandoned
Brought to you by:
sbigaret
From: Sebastien B. <sbi...@us...> - 2003-07-18 08:19:45
|
Jerome Kerdreux <Jer...@fi...> wrote: > Yep .. 2.2 is faster than 2.1 but the big performance boost is in > 2.3. (I read this a couple of times over the net) . While this is still experimental (py2.3 is not officially supported yet), you're definitely right: Python2.3 / +psyco ------------------ [std] 1st fetch : 4.89 / 3.57 [std] 2nd fetch : 0.73 / 0.64 Python2.3 -O / +psyco --------------------- [std] 1st fetch : 4.65 / 3.55 [std] 2nd fetch : 0.72 / 0.64 > Another thing : > Do you use if __debug__ in the Modeling (I don't have the code > since i'm at work) because the most important thing w/ -0 is that > it doesn't marshall the code inside if __debug__ so this can really > be a big improvement. No, I don't use this, thanks for the tip. > And if you read carefully the python cookbook you will find some > really impressive performance boost while using some map.. and > other in list or dict. But there is a drawback code isn't really > eye candy after this tweak I'll check that however. -- S=E9bastien. |