Re: Optimizing sort-algorithm



On Feb 27, 1:45 pm, "alex" <alexander.ek...@xxxxxxxxx> wrote:
hi,
i'm trying to optimize execution time of bubblesort. it already runs
~10sec faster than the vanilla approach. But it still is ~12times
slower than the c-version. Is there nothing more to get out of?
[...]
The c-version needs ~1sec.

What implementation of Common Lisp are you using?


This is SBCL 1.0.2, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
* (defun bubblesort (x size)
[snip])
BUBBLESORT
* (defun main ()
[snip])

MAIN
* (main)

Evaluation took:
0.17 seconds of real time
0.160856 seconds of user run time
0.008781 seconds of system run time
0 calls to %EVAL
0 page faults and
0 bytes consed.
NIL
*

.



Relevant Pages

  • Re: Optimizing sort-algorithm
    ... i'm trying to optimize execution time of bubblesort. ... slower than the c-version. ... (declare (type fixnum tmp)) ...
    (comp.lang.lisp)
  • Re: Optimizing sort-algorithm
    ... i'm trying to optimize execution time of bubblesort. ... ~10sec faster than the vanilla approach. ... slower than the c-version. ...
    (comp.lang.lisp)