<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Implementing a simple circular buffer</title>
	<link>http://blogs.mathworks.com/videos/2009/05/08/implementing-a-simple-circular-buffer/</link>
	<description>Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.</description>
	<pubDate>Sun, 22 Nov 2009 23:32:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2009/05/08/implementing-a-simple-circular-buffer/#comment-1433</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Mon, 11 May 2009 13:37:48 +0000</pubDate>
		<guid>http://blogs.mathworks.com/videos/2009/05/08/implementing-a-simple-circular-buffer/#comment-1433</guid>
		<description>I profiled this with a really large amount of data, more iterations and longer buffer.  That part of the video is on the "cutting room floor".  Basically, there is a negligible performance hit.  To be a real test, it would need to be done in context to see if this architecture is a problem.

This video is in keeping with one of the central themes of my programming style: "Avoid premature optimization".  If I were to try and avoid the churn that this circular buffer goes through, the complexity and readability would suffer.

-Doug</description>
		<content:encoded><![CDATA[<p>I profiled this with a really large amount of data, more iterations and longer buffer.  That part of the video is on the &#8220;cutting room floor&#8221;.  Basically, there is a negligible performance hit.  To be a real test, it would need to be done in context to see if this architecture is a problem.</p>
<p>This video is in keeping with one of the central themes of my programming style: &#8220;Avoid premature optimization&#8221;.  If I were to try and avoid the churn that this circular buffer goes through, the complexity and readability would suffer.</p>
<p>-Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Armyr</title>
		<link>http://blogs.mathworks.com/videos/2009/05/08/implementing-a-simple-circular-buffer/#comment-1432</link>
		<dc:creator>Daniel Armyr</dc:creator>
		<pubDate>Mon, 11 May 2009 07:23:29 +0000</pubDate>
		<guid>http://blogs.mathworks.com/videos/2009/05/08/implementing-a-simple-circular-buffer/#comment-1432</guid>
		<description>Like Petter, I wonder if this should be considdered an efficient implementation or only an easy one? 

I use a few rinbuffers here and there and they are all implemented like this, because it is easy. However, the line buffer = [newValue buffer(1:end-1)] gives the optimizer in me the shivers. Is that just me?</description>
		<content:encoded><![CDATA[<p>Like Petter, I wonder if this should be considdered an efficient implementation or only an easy one? </p>
<p>I use a few rinbuffers here and there and they are all implemented like this, because it is easy. However, the line buffer = [newValue buffer(1:end-1)] gives the optimizer in me the shivers. Is that just me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Petter</title>
		<link>http://blogs.mathworks.com/videos/2009/05/08/implementing-a-simple-circular-buffer/#comment-1431</link>
		<dc:creator>Petter</dc:creator>
		<pubDate>Sat, 09 May 2009 14:22:19 +0000</pubDate>
		<guid>http://blogs.mathworks.com/videos/2009/05/08/implementing-a-simple-circular-buffer/#comment-1431</guid>
		<description>Wouldn't that solution force the entire array to be reshuffled every time a new value is added?</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t that solution force the entire array to be reshuffled every time a new value is added?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
