From max at openchat.com Fri May 25 11:31:27 2012 From: max at openchat.com (Max Mikhanosha) Date: Fri, 25 May 2012 07:31:27 -0400 Subject: [cl-store-devel] optimizing default backend Message-ID: <87txz433ao.wl%max@openchat.com> Is there any interest in having following type enhancement to default backend, and will a patch implementing it be considered? * Introduce buffering by an having an (UNSIGNED-BYTE 8) array bound to a global (similar to the circularity hashes) * Replace every WRITE-BYTE with an inline wrapper that buffers into the above array, and calls a generic FLUSH-STORE-BUFFER when its full * Default FLUSH-STORE-BUFFER method will call write-sequence Above was brought on by disappointing timings of using CL-STORE to serialize to files vs serializing to in-memory streams under SBCL. Tried both flexi-streams and babel-streams, and it seems writing to files directly is around 3x times faster then writing to in-memory streams Regards, Max From leslie.polzer at gmx.net Wed May 30 15:03:21 2012 From: leslie.polzer at gmx.net (Leslie P. Polzer) Date: Wed, 30 May 2012 17:03:21 +0200 Subject: [cl-store-devel] optimizing default backend In-Reply-To: <87txz433ao.wl%max@openchat.com> References: <87txz433ao.wl%max@openchat.com> Message-ID: <20120530150321.3020@gmx.net> Max Mikhanosha wrote: > Is there any interest in having following type enhancement to default > backend, and will a patch implementing it be considered? > > * Introduce buffering by an having an (UNSIGNED-BYTE 8) array > bound to a global (similar to the circularity hashes) > > * Replace every WRITE-BYTE with an inline wrapper that buffers into > the above array, and calls a generic FLUSH-STORE-BUFFER when its full > > * Default FLUSH-STORE-BUFFER method will call write-sequence > > Above was brought on by disappointing timings of using CL-STORE to > serialize to files vs serializing to in-memory streams under > SBCL. Tried both flexi-streams and babel-streams, and it seems writing > to files directly is around 3x times faster then writing to in-memory > streams I'm enthusiastic about it! Please show us your patch and I will be happy to review and apply it. Leslie -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a