| Liam Healy ( @ 2007-11-06 18:54:00 |
| Entry tags: | lisp |
Profiling in SLIME
This is about the easiest profiling I've seen in any language. In
fact, I think it's the only time I been able to make significant
improvements based on the report.
M-x slime-toggle-profile-fdefinitionon all the functions you want to
profile,
M-x slime-profile-resetto clear any existing data, and
M-x slime-profile-reportto see the report after running.
I did it on one of my functions which was taking 700+ seconds to run.
I immediately saw that I was doing an unnecessary computation, which
when removed resulted in a 90 second run. Some more profiling and
other work yielded an end result of 2.5 seconds.