<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" media="screen" href="/App_Themes/default/rss.xslt"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Entries for larsw</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/niners/larsw/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Entries for larsw</title><link>http://channel9.msdn.com/Niners/larsw/</link></image><description>Entries, comments and threads posted by larsw</description><link>http://channel9.msdn.com/Niners/larsw/</link><language>en-us</language><pubDate>Mon, 10 May 2004 09:53:21 GMT</pubDate><lastBuildDate>Mon, 10 May 2004 09:53:21 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3608.3122, Culture=neutral, PublicKeyToken=null)</generator><item><title>Best Practices for Common Operations ( BPFCOP? :-) ) [Best Practices for Common Operations ( BPFCOP? :-) )]</title><description>Hi all,&lt;BR&gt;&lt;BR&gt;Yesterday, I started to work on a small library to parse ID3v2 tags (For those of you that don't know what it is; it's the information embedded in mp3 files, that tells you about the artist/title/recorded year/genre/bpm etc). I normally throw up some mock-up code, and refine it afterwards. Since this is a operation&amp;nbsp;that&amp;nbsp;I would possibly run on *a lot* of files, I want this&amp;nbsp;operation to be fast.&amp;nbsp;So I allready thought about rewriting it with /unsafe, and use pointer arithmetics to parse the tags).&lt;BR&gt;&lt;BR&gt;As&amp;nbsp;I&amp;nbsp;started to hack on the library,&amp;nbsp;and tried to comprehend the specification (found at&amp;nbsp;&lt;a href="http://www.id3.org/"&gt;http://www.id3.org/&lt;/a&gt;) -&amp;nbsp;I&amp;nbsp;came across "problems" - something that we programmers normally does when we do this kind of development, like "what is the best way to check a 3 byte large array if it contains "ID3" and other minor things. Should we just run throught them with nested if-statements, to check each element&amp;nbsp;- and bail out, if it doesn't&amp;nbsp;match. Or should we create an array containing the match criteria - and check the arrays against each other.&lt;BR&gt;&lt;BR&gt;There really should be a wiki that could be used to discuss these small day-to-day problems - that we all run accross.&lt;BR&gt;&lt;BR&gt;Regards,&lt;BR&gt;&lt;BR&gt;&amp;nbsp;--larsw - http://&lt;a href="http://www.sral.org"&gt;www.sral.org&lt;/a&gt;/&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/Coffeehouse/6220-Best-Practices-for-Common-Operations--BPFCOP---/'&gt;Best Practices for Common Operations ( BPFCOP? :-) )&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/6220/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/Coffeehouse/6220-Best-Practices-for-Common-Operations--BPFCOP---/</comments><link>http://channel9.msdn.com/forums/Coffeehouse/6220-Best-Practices-for-Common-Operations--BPFCOP---/</link><pubDate>Mon, 10 May 2004 09:53:21 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/Coffeehouse/6220-Best-Practices-for-Common-Operations--BPFCOP---/</guid><evnet:views>1542</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/6220/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Hi all,&lt;BR&gt;&lt;BR&gt;Yesterday, I started to work on a small library to parse ID3v2 tags (For those of you that don't know what it is; it's the information embedded in mp3 files, that tells you about the artist/title/recorded year/genre/bpm etc). I normally throw up some mock-up code, and refine it afterwards. Since this is a operation&amp;nbsp;that&amp;nbsp;I would possibly run on *a lot* of files, I want this&amp;nbsp;operation to be fast.&amp;nbsp;So I allready thought about rewriting it with /unsafe, and use pointer arithmetics to parse the tags).&lt;BR&gt;&lt;BR&gt;</evnet:previewtext><dc:creator>larsw</dc:creator><slash:comments>2</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/Coffeehouse/6220-Best-Practices-for-Common-Operations--BPFCOP---/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/6220/Trackback.aspx</trackback:ping></item></channel></rss>