Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Complexity of methods etc

Reply
Thread Tools

Complexity of methods etc

 
 
Nathan Harmston
Guest
Posts: n/a
 
      08-13-2007
Hi,

I was wondering if anyone knew of any resources, where I might be able
to find information about the complexity of certain python functions
or little tips on how to reduce complexity. I mean like the "".join(),
kind of thing?

I want to see if there are any improvements I can add to my coding in
order to reduce time/space usage/

Many Thanks in advance

Nathan
 
Reply With Quote
 
 
 
 
Dustan
Guest
Posts: n/a
 
      08-13-2007
On Aug 12, 7:04 pm, "Nathan Harmston" <ratchetg...@googlemail.com>
wrote:
> Hi,
>
> I was wondering if anyone knew of any resources, where I might be able
> to find information about the complexity of certain python functions
> or little tips on how to reduce complexity. I mean like the "".join(),
> kind of thing?
>
> I want to see if there are any improvements I can add to my coding in
> order to reduce time/space usage/


It's really difficult to understand what you mean. If you're looking
for a reference on the functions that are available in the library,
you have a long journey ahead of you at http://docs.python.org/ .

 
Reply With Quote
 
 
 
 
kyosohma@gmail.com
Guest
Posts: n/a
 
      08-13-2007
On Aug 12, 7:04 pm, "Nathan Harmston" <ratchetg...@googlemail.com>
wrote:
> Hi,
>
> I was wondering if anyone knew of any resources, where I might be able
> to find information about the complexity of certain python functions
> or little tips on how to reduce complexity. I mean like the "".join(),
> kind of thing?
>
> I want to see if there are any improvements I can add to my coding in
> order to reduce time/space usage/
>
> Many Thanks in advance
>
> Nathan


Read a book? Lutz's "Programming Python 3rd Ed." will teach you a lot
of tricks. I would also recommend the Python Cookbook book or the
online version here: http://aspn.activestate.com/ASPN/Python/Cookbook/

Mike

 
Reply With Quote
 
Paddy
Guest
Posts: n/a
 
      08-13-2007
On Aug 13, 1:04 am, "Nathan Harmston" <ratchetg...@googlemail.com>
wrote:
> Hi,
>
> I was wondering if anyone knew of any resources, where I might be able
> to find information about the complexity of certain python functions
> or little tips on how to reduce complexity. I mean like the "".join(),
> kind of thing?
>
> I want to see if there are any improvements I can add to my coding in
> order to reduce time/space usage/
>
> Many Thanks in advance
>
> Nathan


There is this collection:
http://python.net/~goodger/projects/...c/handout.html
Although I don't think algorithm complexity is given, it is telling
you how to select the most efficient way of doing things in a number
of examples.

- Paddy.

 
Reply With Quote
 
DjGoldsmith@googlemail.com
Guest
Posts: n/a
 
      08-13-2007
On Aug 13, 1:04 am, "Nathan Harmston" <ratchetg...@googlemail.com>
wrote:
> Hi,
>
> I was wondering if anyone knew of any resources, where I might be able
> to find information about the complexity of certain python functions
> or little tips on how to reduce complexity. I mean like the "".join(),
> kind of thing?
>
> I want to see if there are any improvements I can add to my coding in
> order to reduce time/space usage/
>
> Many Thanks in advance
>
> Nathan


I found the two Python Speed articles useful for demonstrating new
ways to optimise code. Each is full of little tricks and tips on
efficent ways of doing things.


http://wiki.python.org/moin/PythonSpeed
http://wiki.python.org/moin/PythonSpeed/PerformanceTips

Dan

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to find the class methods of a class, just like'methods' finds the instance methods? Kenneth McDonald Ruby 5 09-26-2008 03:09 PM
Re: PIL (etc etc etc) on OS X Kevin Walzer Python 4 08-13-2008 08:27 AM
Top-Up Methods - Finarea (Voipcheap, internetcalls, etc.) et. al., VOIP Services Question - Top-up Methods News Reader UK VOIP 0 04-10-2006 02:41 PM
2.0 Controlling password complexity in Membership =?Utf-8?B?TW9yZ2FuIFJvZGVyaWNr?= ASP .Net 3 04-22-2005 12:23 AM
reducing complexity foldface@yahoo.co.uk ASP .Net 0 10-12-2004 01:05 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57