<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Improving save performance	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/improving-save-performance/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/improving-save-performance?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=improving-save-performance</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Wed, 20 May 2015 15:18:24 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/improving-save-performance#comment-349657</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 20 May 2015 15:18:24 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3762#comment-349657</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/improving-save-performance#comment-349656&quot;&gt;CaptainObv&lt;/a&gt;.

Not directly, but you could try using the low-level HDF5 functions for this.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/improving-save-performance#comment-349656">CaptainObv</a>.</p>
<p>Not directly, but you could try using the low-level HDF5 functions for this.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: CaptainObv		</title>
		<link>https://undocumentedmatlab.com/articles/improving-save-performance#comment-349656</link>

		<dc:creator><![CDATA[CaptainObv]]></dc:creator>
		<pubDate>Wed, 20 May 2015 15:16:11 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3762#comment-349656</guid>

					<description><![CDATA[Is it possible to save matfiles without creating the initial variable at the beginning?

I am continually adding output data to my matfile block by block (I.e continually expanding its dimensions). I want to speed this up and I considered preallocating the space within the matfile (as you do with regular arrays before a loop).

However my initial variable will be quite large (hence why I am block processing), and I don&#039;t want to risk the possibility of a memory error, so ideally I&#039;d like To create the Matfile without Saving the variable to matlab memory as you did with your A and B variables.

Is there a way?]]></description>
			<content:encoded><![CDATA[<p>Is it possible to save matfiles without creating the initial variable at the beginning?</p>
<p>I am continually adding output data to my matfile block by block (I.e continually expanding its dimensions). I want to speed this up and I considered preallocating the space within the matfile (as you do with regular arrays before a loop).</p>
<p>However my initial variable will be quite large (hence why I am block processing), and I don&#8217;t want to risk the possibility of a memory error, so ideally I&#8217;d like To create the Matfile without Saving the variable to matlab memory as you did with your A and B variables.</p>
<p>Is there a way?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jkoether		</title>
		<link>https://undocumentedmatlab.com/articles/improving-save-performance#comment-344610</link>

		<dc:creator><![CDATA[jkoether]]></dc:creator>
		<pubDate>Thu, 22 Jan 2015 18:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3762#comment-344610</guid>

					<description><![CDATA[For me, the biggest advantage of savefast is that by saving uncompressed, a specific portion of an array can be loaded MUCH faster when using the matfile function.  There seems to be some decompression overhead that is a function of the array size regardless of how little data you are asking for. For example, with a 250Mb file just using the save function, it take a minimum of 2 seconds to extract data, even if I am only loading 10k elements.  If the file is created by savefast it only takes .02 seconds to load 10k elements.  This will be a huge improvement for my software.]]></description>
			<content:encoded><![CDATA[<p>For me, the biggest advantage of savefast is that by saving uncompressed, a specific portion of an array can be loaded MUCH faster when using the matfile function.  There seems to be some decompression overhead that is a function of the array size regardless of how little data you are asking for. For example, with a 250Mb file just using the save function, it take a minimum of 2 seconds to extract data, even if I am only loading 10k elements.  If the file is created by savefast it only takes .02 seconds to load 10k elements.  This will be a huge improvement for my software.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Hugo		</title>
		<link>https://undocumentedmatlab.com/articles/improving-save-performance#comment-327186</link>

		<dc:creator><![CDATA[Hugo]]></dc:creator>
		<pubDate>Mon, 30 Jun 2014 05:47:01 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3762#comment-327186</guid>

					<description><![CDATA[Hello,
I&#039;ve just tried to save a figure (around 2e4 double data points) with -v7.3 in R2014a, and it resulted in 100Mb file size instead of 1.4Mb with default -v7. A new bug maybe?]]></description>
			<content:encoded><![CDATA[<p>Hello,<br />
I&#8217;ve just tried to save a figure (around 2e4 double data points) with -v7.3 in R2014a, and it resulted in 100Mb file size instead of 1.4Mb with default -v7. A new bug maybe?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Roger		</title>
		<link>https://undocumentedmatlab.com/articles/improving-save-performance#comment-322620</link>

		<dc:creator><![CDATA[Roger]]></dc:creator>
		<pubDate>Wed, 16 Apr 2014 15:27:22 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3762#comment-322620</guid>

					<description><![CDATA[What about the load function? Inside a function, I found that using assignin(&#039;base&#039;, variables) is faster than using evalin(&#039;base&#039;, load .mat containing the variables). I thought loading the variables from a .mat file would be faster than using the assignin command. Would really like to see the same kind of topic but on the load command.]]></description>
			<content:encoded><![CDATA[<p>What about the load function? Inside a function, I found that using assignin(&#8216;base&#8217;, variables) is faster than using evalin(&#8216;base&#8217;, load .mat containing the variables). I thought loading the variables from a .mat file would be faster than using the assignin command. Would really like to see the same kind of topic but on the load command.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Explicit multi-threading in Matlab &#8211; part 1 &#124; Undocumented Matlab		</title>
		<link>https://undocumentedmatlab.com/articles/improving-save-performance#comment-314891</link>

		<dc:creator><![CDATA[Explicit multi-threading in Matlab &#8211; part 1 &#124; Undocumented Matlab]]></dc:creator>
		<pubDate>Wed, 19 Feb 2014 20:20:30 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3762#comment-314891</guid>

					<description><![CDATA[[...] to be too slow for our specific needs. We could perhaps improve it a bit with some fancy tricks for save or fwrite. But let&#8217;s take a different approach today, using multi-threading:Using Java [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] to be too slow for our specific needs. We could perhaps improve it a bit with some fancy tricks for save or fwrite. But let&#8217;s take a different approach today, using multi-threading:Using Java [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Serializing/deserializing Matlab data &#124; Undocumented Matlab		</title>
		<link>https://undocumentedmatlab.com/articles/improving-save-performance#comment-310954</link>

		<dc:creator><![CDATA[Serializing/deserializing Matlab data &#124; Undocumented Matlab]]></dc:creator>
		<pubDate>Wed, 22 Jan 2014 19:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3762#comment-310954</guid>

					<description><![CDATA[[...] Last year I wrote an article on improving the performance of the save function. The article discussed various ways by which we can store Matlab data on disk. [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] Last year I wrote an article on improving the performance of the save function. The article discussed various ways by which we can store Matlab data on disk. [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: How to store large datasets? &#124; Matlabtips.com		</title>
		<link>https://undocumentedmatlab.com/articles/improving-save-performance#comment-305518</link>

		<dc:creator><![CDATA[How to store large datasets? &#124; Matlabtips.com]]></dc:creator>
		<pubDate>Mon, 23 Dec 2013 07:04:53 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3762#comment-305518</guid>

					<description><![CDATA[[...] you need to optimizing read/write speed when dealing with MAT/HDF5 files, I encourage you to read Yair&#8217;s excellent post on that [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] you need to optimizing read/write speed when dealing with MAT/HDF5 files, I encourage you to read Yair&#8217;s excellent post on that [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Robin		</title>
		<link>https://undocumentedmatlab.com/articles/improving-save-performance#comment-213986</link>

		<dc:creator><![CDATA[Robin]]></dc:creator>
		<pubDate>Mon, 17 Jun 2013 16:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3762#comment-213986</guid>

					<description><![CDATA[Are you sure Matlab doesn&#039;t compress structures/cells saved in v7.3? 

I have exactly the opposite problem that it is not able to disable compression, which in v7.3 provides almost no space benefit for my data at the cost of extremely long save and load times. 

When I save structures/cell arrays compression is still used. I think compression kicks in for any numeric object which is greater than 10000 bytes (so if you have large structure or cell contents I think they will still be compressed).

The serialization trick is really interesting, thanks!]]></description>
			<content:encoded><![CDATA[<p>Are you sure Matlab doesn&#8217;t compress structures/cells saved in v7.3? </p>
<p>I have exactly the opposite problem that it is not able to disable compression, which in v7.3 provides almost no space benefit for my data at the cost of extremely long save and load times. </p>
<p>When I save structures/cell arrays compression is still used. I think compression kicks in for any numeric object which is greater than 10000 bytes (so if you have large structure or cell contents I think they will still be compressed).</p>
<p>The serialization trick is really interesting, thanks!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: How to store large datasets? &#124; Matlabtips.com		</title>
		<link>https://undocumentedmatlab.com/articles/improving-save-performance#comment-202395</link>

		<dc:creator><![CDATA[How to store large datasets? &#124; Matlabtips.com]]></dc:creator>
		<pubDate>Wed, 15 May 2013 12:02:42 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3762#comment-202395</guid>

					<description><![CDATA[[...] If you need to optimizing read/write speed when dealing with MAT/HDF5 files, I encourage you to read Yair&#039;s excellent post on that topic. [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] If you need to optimizing read/write speed when dealing with MAT/HDF5 files, I encourage you to read Yair&#8217;s excellent post on that topic. [&#8230;]</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
