Re: Psycho question

2008-08-23 Thread arigo+google
On Aug 8, 7:18 pm, David C. Ullrich [EMAIL PROTECTED] wrote: The one thing that puzzles me about all the results is why // is so much slower than / inside that Psyco loop. Just an oversight. The optimization about '/' between integers was not copied for the case of '//' between integers.

Re: Psycho question

2008-08-13 Thread Paul Boddie
On 8 Aug, 20:36, John Krukoff [EMAIL PROTECTED] wrote: One possibility for the performance difference, is that as I understand it the psyco developer has moved on to working on pypy, and probably isn't interested in keeping psyco updated and optimized for new python syntax. More here on the

Re: Psycho question

2008-08-11 Thread David C. Ullrich
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: John Krukoff: One possibility for the performance difference, is that as I understand it the psyco developer has moved on to working on pypy, and probably isn't interested in keeping psyco updated and optimized for new python

Re: Psycho question

2008-08-08 Thread David C. Ullrich
In article [EMAIL PROTECTED], Delaney, Timothy (Tim) [EMAIL PROTECTED] wrote: David C. Ullrich wrote: f: 0.0158488750458 g: 0.000610113143921 h: 0.00200295448303 f: 0.0184948444366 g: 0.000257015228271 h: 0.00116610527039 I suspect you're hitting the point of diminishing

Re: Psycho question

2008-08-08 Thread John Krukoff
On Fri, 2008-08-08 at 12:18 -0500, David C. Ullrich wrote: Curiously smug grin g is exactly how I'd planned on doing it before trying anything. The one thing that puzzles me about all the results is why // is so much slower than / inside that Psyco loop. Tim Delaney One possibility for

Re: Psycho question

2008-08-08 Thread bearophileHUGS
John Krukoff: One possibility for the performance difference, is that as I understand it the psyco developer has moved on to working on pypy, and probably isn't interested in keeping psyco updated and optimized for new python syntax. Somebody correct me if I'm wrong, but last I heard there's

Re: Psycho question

2008-08-07 Thread David C. Ullrich
In article [EMAIL PROTECTED], Erik Max Francis [EMAIL PROTECTED] wrote: David C. Ullrich wrote: Thanks. I would have guessed that I'd want low-level style code; that's the sort of thing I have in mind. In fact the only thing that seems likely to come up right now is looping through an

Re: Psycho question

2008-08-07 Thread MRAB
On Aug 6, 8:52 pm, David C. Ullrich [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: David C. Ullrich: Thanks. If I can get it installed and it works as advertised this means I can finally (eventually) finish the process of dumping MS Windows: the only

Re: Psycho question

2008-08-07 Thread David C. Ullrich
In article [EMAIL PROTECTED], MRAB [EMAIL PROTECTED] wrote: On Aug 6, 8:52 pm, David C. Ullrich [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: David C. Ullrich: Thanks. If I can get it installed and it works as advertised this means I can

RE: Psycho question

2008-08-07 Thread Delaney, Timothy (Tim)
David C. Ullrich wrote: f: 0.0158488750458 g: 0.000610113143921 h: 0.00200295448303 f: 0.0184948444366 g: 0.000257015228271 h: 0.00116610527039 I suspect you're hitting the point of diminishing returns with g, and any further investigations into optimisation are purely for fun and learning

Re: Psycho question

2008-08-06 Thread David C. Ullrich
In article [EMAIL PROTECTED], Erik Max Francis [EMAIL PROTECTED] wrote: David C. Ullrich wrote: Just heard about Psycho. I've often wondered why someone doesn't make something that does exactly what Psycho does - keen. Silly question: It's correct, is it not, that Psycho doesn't

Re: Psycho question

2008-08-06 Thread bearophileHUGS
David C. Ullrich: Thanks. If I can get it installed and it works as advertised this means I can finally (eventually) finish the process of dumping MS Windows: the only reason I need it right now is for the small number of Delphi programs I have for which straight Python is really not

Re: Psycho question

2008-08-06 Thread David C. Ullrich
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: David C. Ullrich: Thanks. If I can get it installed and it works as advertised this means I can finally (eventually) finish the process of dumping MS Windows: the only reason I need it right now is for the small number of Delphi

Re: Psycho question

2008-08-06 Thread David C. Ullrich
In article [EMAIL PROTECTED], David C. Ullrich [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: David C. Ullrich: Thanks. If I can get it installed and it works as advertised this means I can finally (eventually) finish the process of dumping MS

Re: Psycho question

2008-08-06 Thread Erik Max Francis
David C. Ullrich wrote: Thanks. I would have guessed that I'd want low-level style code; that's the sort of thing I have in mind. In fact the only thing that seems likely to come up right now is looping through an array of bytes, modifying them. The plan is to use the array module first to

Re: Psycho question

2008-08-06 Thread bearophileHUGS
Erik Max Francis: If len(bytes) is large, you might want to use `xrange`, too. `range` creates a list which is not really what you need. That's right for Python, but Psyco uses normal loops in both cases, you can time this code in the two situations: def foo1(n): count = 0 for i in

Re: Psycho question

2008-08-05 Thread Erik Max Francis
David C. Ullrich wrote: Just heard about Psycho. I've often wondered why someone doesn't make something that does exactly what Psycho does - keen. Silly question: It's correct, is it not, that Psycho doesn't actually modify the Python installation, except by adding a module or two (so that