[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Profiler already proving useful
From: |
Rik |
Subject: |
Re: Profiler already proving useful |
Date: |
Fri, 22 Jul 2011 14:18:14 -0700 |
On 07/22/2011 12:15 PM, Daniel Kraft wrote:
> Hi Rik,
>
> On 07/22/11 20:39, Rik wrote:
>> I wanted to let you know that the profiler is already proving useful. I
>> was taking a look at this issue report
>> (https://savannah.gnu.org/bugs/?33680) where the user complained of really
>> lengthy run times. He had narrowed it down to a call to regexp() and
>> replacing it with strsplit seemed to improve matters. Just for fun, I
>> decided to try the profiler and see what it thought. Even without GUIs to
>> look over the data, it pointed the finger at an entirely different
>> function, strtrim(). Sure enough, I replaced strtrim with a call to
>> regexprep and got a 15X speedup.
>
> that's really nice to hear! :)
>
> Regarding without GUIs: Since my last patch (which was pushed by Jordi
> recently), there's a function 'profshow' which can be used to print out
> the "hottest" functions in a table.
That looks good. I was doing all of this with the first round of patches
and there wasn't even profile.m, just profiler_enable and profiler_data.
I'll be happy to use profshow from now on.
--Rik