Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-23 Thread Senthil Kumaran
On Wed, Dec 23, 2009 at 11:15:56AM +0530, Vishal wrote: After having everything in Python now, performance is something people want to look at. Hence these efforts. Would you like to explain a bit more on this? Most often with Python when I have found people speaking about performance and

Re: [BangPypers] Is it possible to run python software in WinxP?

2009-12-23 Thread Senthil Kumaran
Hello Mr. Sriranga, On Wed, Dec 23, 2009, 74yrs old wrote: Hello Python experts, Not really experts here, but learners like you perhaps. :) guidance- step by step- how to run the said program in WinXP also. The said program viz tesseractindic-trainer-gui-0.1.3 tar.gz(113 KB) is available

Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-23 Thread Navin Kabra
On Wed, Dec 23, 2009 at 9:03 PM, Senthil Kumaran orsent...@gmail.comwrote: On Wed, Dec 23, 2009 at 11:15:56AM +0530, Vishal wrote: After having everything in Python now, performance is something people want to look at. Hence these efforts. Would you like to explain a bit more on this?

Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-23 Thread Ramdas S
On Thu, Dec 24, 2009 at 6:34 AM, Navin Kabra navin.ka...@gmail.com wrote: On Wed, Dec 23, 2009 at 9:03 PM, Senthil Kumaran orsent...@gmail.com wrote: On Wed, Dec 23, 2009 at 11:15:56AM +0530, Vishal wrote: After having everything in Python now, performance is something people want to

Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-23 Thread Navin Kabra
On Thu, Dec 24, 2009 at 7:39 AM, Senthil Kumaran orsent...@gmail.comwrote: Here is the link: http://shootout.alioth.debian.org/ There are three Java states given, Java -xint, Java steady state and Java -server. Try choosing each of them and compare against Python and C++. With respect to

Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-23 Thread Praveen Kumar
As far as i also tried to find out the real thing and discussed with my friends too, their performance is exactly the same. *'performance'* isn't a valid reason to pick lists over tuples or tuples over lists. A list is a resizable, mutable sequence; a tuple is an immutable sequence While it may,

Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-23 Thread Vishal
Just to send my 2 cents more: tuple creation vs list creation may be significant depending on what it contains. and O(n) is definitely O(n)...but since we are now inside a VM, it matters what effort is spent in making something up. what do you think of code snippet: def l(): ... l =

Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-23 Thread Noufal Ibrahim
On Thu, Dec 24, 2009 at 12:52 PM, Vishal vsapr...@gmail.com wrote: [..] Also interesting stuff about the Java comparison. The question remains, why the JVM is so fast and why Python is not as far as JVM? I am sure there must be a ton of info on this over the net :) This came up (albeit in

Re: [BangPypers] Tuples vs Lists, perfromance difference

2009-12-23 Thread Roshan Mathews
On Thu, Dec 24, 2009 at 1:03 PM, Vishal vsapr...@gmail.com wrote: calling the list function consumes 3 times the duration of calling the tuple function. And I understand the absolute times are negligible in this case...but they may become significant when stuff inside the container is of some