realbasic-plugins
[Top] [All Lists]

Double-buffering read/write to files

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Double-buffering read/write to files
From: "Theodore H. Smith" <delete at elfdata dot com>
Date: Mon, 11 Dec 2006 20:07:38 +0000
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer:sender; b=UTrRNEq+sQvv8b91kbc8vSR/dFg6o51MrGjkGHnHFnNglXyJJONXKIRl7ayPSvVNvKcvIY6/AFcaHGIkEaLJuBsQ6XDzQ19T9oTvqoJ97YXF/5yyb0+G/7s01UIYaUdWIhj1KewiUuUK6Q/eOag+jXOQL+mnJ85iFRKazQWz29g=
References: <557C772B-523C-457F-9A99-D5E7A0628387 at elfdata dot com>
Also, anyone know anything about double-buffering file streams?

So, basically, how I'd like it to work, is that ask for a read into the buffer, and return instantly before the read is complete! The user will process a previously made buffer. By the time he's finished processing it, the last read will be complete. If not, we'll actually just block until the read is complete.

Does fread offer such functionality? OR any standard Unix calls?

I'll bet I could speed up that demo I made which was 4x faster than perl on my G5, to be 12x faster, if I added this feature!!

All of this will go into my new ElfDataStream class I'm making, for within my ElfData plugin.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>