[cl-pdf-devel] cl-pdf with salza

Marc Battyani marc.battyani at fractalconcept.com
Mon Apr 11 18:35:14 UTC 2005


"Dmitriy Ivanov" <divanov at aha.ru> wrote:

> I have managed to improve SALZA performance on LW 4.4 slightly using
sys:int32
> arithmetic. See the bunch of the changed files attached. I have had to
> change the order of source files in the system definition - look at my
> defsys.lisp.
>
> Below is the excerpt from the simple test case.
>
> (setq size 100000
>       src (make-array size :element-type '(unsigned-byte 8)))
> (dotimes (i size) (setf (aref src i) (random 256))))
>
> ;#-lw-int32
> (extended-time (progn (setq v1 (zlib:compress-sequence src)) (length v1)))
> ;user time    =      0.421
> ;system time  =      0.000
> ;Elapsed time =   0:00:00
> ;Allocation   = 10759576 bytes standard / 2057 bytes conses
>
> ;#+lw-int32
> (extended-time (progn (setq v2 (zlib:compress-sequence src)) (length v2)))
> ;user time    =      0.234
> ;system time  =      0.000
> ;Elapsed time =   0:00:00
> ;Allocation   = 4200024 bytes standard / 4499 bytes conses

Very cool. Now it should be much faster than using the FLI zlib.
But as I have a big deadline in 3 days. I probably won't be able to look at
this before Friday :(

Marc





More information about the cl-pdf-devel mailing list