[Openmcl-devel] Profiling Parenscript compilation
sblist at me.com
Fri Dec 5 00:49:01 UTC 2008
As a follow-up, I'd like to mention what our bottleneck was. It turned
we were using some expensive CL-PPCRE scanners to do some basic
dispatching when a simple cons pair would do (although in just a
more verbose syntax). It's not entirely clear why this is so different
vs. CCL, but it's something we plan to investigate.
Pre-optimized parenscript compilation: SBCL 12s, CCL 80s
Post-optimized parenscript compilation: SBCL 0.7s, CCL 0.7s
My first thought is possibly character representation, but I'm not
acquainted with the joys of Unicode encodings. I will advise further
we get some more information.
On 4-Dec-08, at 4:56 AM, Hans Hübner wrote:
> I committed a fix to the deterministic profiler so that it should now
> work on Darwin, too. Please give it a try:
> (PROF:PROFILE foo) ; profile function foo
> (PROF:PROFILE "FOO") ; profile package "FOO"
> (PROF:REPORT) ; write out profiling report
> (PROF:RESET) ; reset profiling
> (PROF:UNPROFILE foo) ; unprofile function foo
> (PROF:UNPROFILE-ALL) ; unprofile everything
> Note that the profiler must be initialized before any threads are
> started as it uses thread-specific data. I load it in my
> ccl-init.lisp like so:
> (require 'asdf)
> (push (merge-pathnames #P"tools/advice-profiler/"
> (ccl::ccl-directory)) asdf:*central-registry*)
> (asdf:oos 'asdf:load-op :profiler)
> Let me know if you have any issues or questions.
More information about the Openmcl-devel