[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Profiler already proving useful
From: |
Daniel Kraft |
Subject: |
Re: Profiler already proving useful |
Date: |
Fri, 22 Jul 2011 21:15:59 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
Maybe you already used this function and don't regard it as a real
"GUI", but at least you don't have to work through the structure array
any longer and get the data already sorted.
Cheers,
Daniel
- --
OpenPGP: 3BA2 3DDB 7758 F010 BDAB 0DCF 527E 79BA A3B5 3998
or use https://safesend.kraftware.de/
- --
Done: Arc-Bar-Cav-Kni-Ran-Rog-Sam-Tou-Val-Wiz
To go: Hea-Mon-Pri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJOKcxuAAoJEFJ+ebqjtTmYn5EP/0VKPg4UkcLQZ42qrQS6B1k8
CzeXzpC1mKCCrpCxS5efGkbXBjIYr1g+0ym5kcxvdl3R+fsjbpsfcs6hpQWxxjwj
tKh56G1hqg/piF9uZw+rSM0L0Dl9Q9+P25Qt8tVQiTDXh/cjcZGI42kxttp1Fnn7
8+IaWyRqbWRsUnuZK+XLf2KBgCsa9p9WAlD44pbbOkaBWNqFU2pRKwup9jPhtVAt
O3TkGR4Wd/cD98Bz90EoY/kKYufEqpCIs+6GauN0xEwrkWYrg5X0pCpw+UbnIZIw
JoPzKSvldfoXu6ux5oDljvvgjp13+NzGsWVjRmgr1wT34jJcf50tbgZA2MI29XBf
c0Zq+l9YBqGHysUIoZ56sqWG0HmPM9+ydbypHVk4uy/HMuhGaekxLHhEAKpOdiW9
1R9VRS+1kvbWL38zEu7wyUvARchLiyRPBo17F7ZAmsPY0Uy/iJuaPEmiA70kZmcL
fIkIqNBOB4eKoP9aHqyU+ZRbOXNhde3dk8t8rcE+C85eUhanXN4JZ7fqo5N6lYqW
1iGwtb6q/ihz9sv4u2QMOHTILFpapCy8kD9cqSLEb/sjY2IDSfKlvKMKAiuIKHgz
85x0q264aB1PKuRrsHAqC1qrZbjFOUjx/cDbLD5MO0kpZgUq1AxwKVAb4nIF8mVO
aoLI3FJDrN6vRyUS84Li
=y+u5
-----END PGP SIGNATURE-----