[Gambas-user] Profiler for Gambas projects

Jussi Lahtinen jussi.lahtinen at ...626...
Sat Sep 12 14:43:28 CEST 2009


I must add this also...
Profiler is like debugger, if you know where the error is you don't
need debugger,
but many times you don't!
Same thing with profiler, if you know where the bottleneck is you
don't need profiler,
but many times you don't!


Jussi


On Sat, Sep 12, 2009 at 15:39, Jussi Lahtinen <jussi.lahtinen at ...626...> wrote:
>> Computers are much faster,
>
>  Still your program can run slowly!
>
>
>> compilers are more optimizing,
>
>  Gambas compiler do not optimize at all.
>
>
>> analisys of the task and experience tell what to do - better than a profiler.
>
>  Not true at all. That's almost always opposite!
>
>
>> This was clearly stated in the turbo profiler documentation: "the most important mean to
>> write a fast program is to analyze which is the better algorithm, not to
>> do tricks at the instructions level".
>
>  Idea of profiler is not to optimize instruction level.
>  Profiler is there to tell you, what sub, function, etc. is slowing
> down your program.
>  With big complicated project, it is very hard to say what is the true
> bottleneck.
>  You can't "run the whole code in your head" and see where the problem is.
>  But true is that when you optimize, you optimize algorithm, not instructions.
>
>  I highly recommend to put your code into test. If you have written
> something with python
>  or C/C++, test it with profiler. I bet you will be surprised!
>
>
> Jussi
>




More information about the User mailing list