|
From: | Daniel J Sebald |
Subject: | Re: Speeding Up gnuplot Interface with Binary Data |
Date: | Wed, 15 Oct 2008 00:12:08 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020 |
Dmitri A. Sergatskov wrote:
On Tue, Oct 14, 2008 at 11:37 PM, John W. Eaton <address@hidden> wrote:I think it would be better to use sprintf ("record=%d", numel (obj.xdata)); instead.Both works for me. Just an observation: running tic; plot(rand(1000)); toc takes 2 seconds with 3.0.2 and 12 with 3.1.51+ Of course, the gnuplot's time is the other way around, so we loosing time on formatting data into binary format and than win some back during the parsing.
Huh? Binary should be faster on both sides. fwrite() should be faster than fprint(), fread() faster than fscanf(), generally speaking. How long ago is 3.0.2? What were the changes between those two versions? Dan
[Prev in Thread] | Current Thread | [Next in Thread] |