On Thu, Dec 24, 2009 at 1:11 PM, Roshan Mathews wrote:
> [..]
> When you do need to get things faster, (assuming you already have
> optimized your algo), just use psyco [1] -- that should speed things
> up significantly. If that's still not good enough, then think of
> tricks (like the tuple vs.
On Thu, Dec 24, 2009 at 1:03 PM, Vishal 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 complicated typ
On Thu, Dec 24, 2009 at 12:52:06PM +0530, Vishal wrote:
> What I was thinking is that as a matter of practice, while writing code, is
> it good practice to use tuples, whenever we know that the sequence is not
> going to change at runtime, and only accessing is going to happen.
This is helpful to
On Thu, Dec 24, 2009 at 12:52 PM, Vishal 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 a tangentia
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 = [1,2,
On Thu, Dec 24, 2009 at 12:50 PM, Praveen Kumar
wrote:
> O(n) is O(n) is O(n)... Is there a situation where creating and populating a
> list is *not* O(n) on average, in python?
"In theory, theory and practice are the same. In practice, they are
not." In other words, constants matter.
Also, the
well, yeah this is certainly a corner case. Its not the first place that i
was looking to improve performance. Our applications are IO bound, and so we
have done all that can be done there (by the way the IO is actually over a
hardware JTAG chain on a server board which is accessed by USB by the ho
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, b
On Thu, Dec 24, 2009 at 7:39 AM, Senthil Kumaran wrote:
> 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 Python, you will
On Thu, Dec 24, 2009 at 10:44 AM, Ramdas S wrote:
> I didn't quite follow you here, I'm sorry. I was chatting with someone in
> IRC a week back, and here's his theory. He says in languages such as Python
> or Perl, almost all I/O, database etc are all optimized in C and hence
> there
> should no
On Thu, Dec 24, 2009 at 6:34 AM, Navin Kabra wrote:
> On Wed, Dec 23, 2009 at 9:03 PM, Senthil Kumaran >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 look at. Hence these efforts
On Thu, Dec 24, 2009 at 06:34:51AM +0530, Navin Kabra wrote:
> > to expect the performance of C++ in Python. A good comparison should
> > be Java and I have found interchanging performance differences for
> > applications in Java and Python.
> >
>
> Huh!?
>
> I think you phenomenally misunderstan
On Wed, Dec 23, 2009 at 9:03 PM, Senthil Kumaran 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 look at. Hence these efforts.
>
> Would you like to explain a bit more on this? Most often with
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
> avai
On Wed, Dec 23, 2009 at 9:03 PM, Senthil Kumaran 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 look at. Hence these efforts.
>
> Would you like to explain a bit more on this? Most often with
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 spee
Hi,
At our company we use py2exe to deply our apps on windows. We use NSIS for
creating installer. Google to know more :)
Ankur
On Wed, Dec 23, 2009 at 9:30 AM, 74yrs old wrote:
> Hello Python experts,
>
> I have one python program og (113KB) ( on request, I shall forward the
> same)
> which r
17 matches
Mail list logo