<?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: datestr performance	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/datestr-performance/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/datestr-performance?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=datestr-performance</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Sat, 29 Oct 2011 15:52:21 +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/datestr-performance#comment-60576</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sat, 29 Oct 2011 15:52:21 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2453#comment-60576</guid>

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

@Eric - Thanks for the new ideas]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/datestr-performance#comment-60515">EBS</a>.</p>
<p>@Eric &#8211; Thanks for the new ideas</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: EBS		</title>
		<link>https://undocumentedmatlab.com/articles/datestr-performance#comment-60515</link>

		<dc:creator><![CDATA[EBS]]></dc:creator>
		<pubDate>Fri, 28 Oct 2011 18:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2453#comment-60515</guid>

					<description><![CDATA[Yair, good tip - what about separating out the cache creation into its own function, and putting that call into startup.m? Then you&#039;d move the first-run time hit to startup, which is innocuous... You could next try making the cache creation one-time by saving it into an mat-file stored in the prefdir(?), using similar logic to check if it exists at the entry to the cache_creation function. This may not be any faster though :)

One power-user tip that used to work is to move any often-called/performance-critical &#039;user library&#039; functions into the MATLAB library directory, and then update the function cache. This used to decrease the time required by ML to lookup the function, but recent improvements may make this untrue in recent versions? A related but little-known tip is that &#039;clear all&#039; also deletes the internal function cache and causes it to be rebuilt, which can reduce performance esp. for user functions until it has been built over time as funcs are called.

Cheers,
EBS]]></description>
			<content:encoded><![CDATA[<p>Yair, good tip &#8211; what about separating out the cache creation into its own function, and putting that call into startup.m? Then you&#8217;d move the first-run time hit to startup, which is innocuous&#8230; You could next try making the cache creation one-time by saving it into an mat-file stored in the prefdir(?), using similar logic to check if it exists at the entry to the cache_creation function. This may not be any faster though 🙂</p>
<p>One power-user tip that used to work is to move any often-called/performance-critical &#8216;user library&#8217; functions into the MATLAB library directory, and then update the function cache. This used to decrease the time required by ML to lookup the function, but recent improvements may make this untrue in recent versions? A related but little-known tip is that &#8216;clear all&#8217; also deletes the internal function cache and causes it to be rebuilt, which can reduce performance esp. for user functions until it has been built over time as funcs are called.</p>
<p>Cheers,<br />
EBS</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: marco		</title>
		<link>https://undocumentedmatlab.com/articles/datestr-performance#comment-59441</link>

		<dc:creator><![CDATA[marco]]></dc:creator>
		<pubDate>Sat, 15 Oct 2011 17:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2453#comment-59441</guid>

					<description><![CDATA[Really cool idea. I normally cringe when I see persistent variables, but this seems like a great use of them. Interesting indentation scheme you have there - kind of c-like to have your function guts indented like that.]]></description>
			<content:encoded><![CDATA[<p>Really cool idea. I normally cringe when I see persistent variables, but this seems like a great use of them. Interesting indentation scheme you have there &#8211; kind of c-like to have your function guts indented like that.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: MJJ		</title>
		<link>https://undocumentedmatlab.com/articles/datestr-performance#comment-58829</link>

		<dc:creator><![CDATA[MJJ]]></dc:creator>
		<pubDate>Fri, 07 Oct 2011 09:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2453#comment-58829</guid>

					<description><![CDATA[Also, logical indexing is fast, both to write and to process, but if you are only after a select few values within a large/huge array &lt;i&gt;&lt;b&gt;find&lt;/b&gt;&lt;/i&gt; may be faster (and less memory hungry) especially with the &#039;k&#039; parameter.]]></description>
			<content:encoded><![CDATA[<p>Also, logical indexing is fast, both to write and to process, but if you are only after a select few values within a large/huge array <i><b>find</b></i> may be faster (and less memory hungry) especially with the &#8216;k&#8217; parameter.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rory		</title>
		<link>https://undocumentedmatlab.com/articles/datestr-performance#comment-58801</link>

		<dc:creator><![CDATA[Rory]]></dc:creator>
		<pubDate>Thu, 06 Oct 2011 21:23:33 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=2453#comment-58801</guid>

					<description><![CDATA[I love this blog. This is fantastic.]]></description>
			<content:encoded><![CDATA[<p>I love this blog. This is fantastic.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
