help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Vector and List Performance


From: Nordlöw
Subject: Re: Vector and List Performance
Date: Tue, 9 Jun 2009 04:30:49 -0700 (PDT)
User-agent: G2/1.0

Aahh, we needed a macro instead:

(defmacro bench (&rest forms)
    "Convenience wrapper for benchmark-run-compiled."
    `(let ((n 10))
       (/ (nth 0 (benchmark-run n ,@forms)) n)))

This gives a reasonable difference in performance.

By the way, does elisp lists have extra pointers to the middle of the
list (a skip-list)?

/Per Nordlöw


reply via email to

[Prev in Thread] Current Thread [Next in Thread]