igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] speeding up the code


From: Marco
Subject: Re: [igraph] speeding up the code
Date: Thu, 11 Jun 2009 17:34:12 +0200

Thanks to all!

m

--
restituiremo il riso ai salici



On Thu, Jun 11, 2009 at 5:29 PM, Steve
Lianoglou<address@hidden> wrote:
> Hi,
>
> On Jun 11, 2009, at 7:54 AM, Tamas Nepusz wrote:
>
>> Hi Marco,
>>
>>> I have just finished writing some fair complex code in python+igraph
>>> and I am now trying to speedup the code.
>>> Since I have never done something like this, I am looking for ideas.
>>
>> Well, considering that igraph is written in C, the more time you are
>> able to spend "inside" igraph function calls, the faster your code will
>> be ;) Besides that, I guess it's better to optimize the Python code than
>> to rewrite the whole thing in C. Optimizing Python code is tricky, since
>> sometimes it goes against common sense if you are not familiar with
>> Python's internals. Read these essays as a start:
>>
>> http://www.python.org/doc/essays/list2str.html
>> http://www.skymind.com/~ocrow/python_string/
>
> Also see:
>
> http://wiki.python.org/moin/PythonSpeed/PerformanceTips
>
> HTH,
> -steve
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]