<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8486822413101972100.post4566311586192576602..comments</id><updated>2009-06-22T18:31:43.208+06:00</updated><title type='text'>Comments on .NET tips, tricks and patterns: Fast expression compilation</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tips.x-tensive.com/feeds/4566311586192576602/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8486822413101972100/4566311586192576602/comments/default'/><link rel='alternate' type='text/html' href='http://tips.x-tensive.com/2009/05/fast-expression-compilation.html'/><author><name>Alex Yakunin</name><uri>http://www.blogger.com/profile/13800929290476802273</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8486822413101972100.post-8721970946933145344</id><published>2009-06-22T18:31:43.208+06:00</published><updated>2009-06-22T18:31:43.208+06:00</updated><title type='text'>Yes, it is, although not dramatically: as you may ...</title><content type='html'>Yes, it is, although not dramatically: as you may find here, all the &amp;quot;additional job&amp;quot; we do is expression comparison. As it&amp;#39;s shown, it takes ~ 30% of pure compilation time at max, and it happens anyway. So if there will be really unique expressions, they&amp;#39;ll be compiled 30% slower. &lt;br /&gt;&lt;br /&gt;What&amp;#39;s more important: how frequently do you produce really unique expressions, that are compiled just once, taking into account the way we compare them - our comparer is constant-insensitive? &lt;br /&gt;&lt;br /&gt;Moreover, each of such unique expressions will eat some RAM after the compilation (.NET doesn&amp;#39;t unload the code), so such a process can&amp;#39;t live infinitely. If you&amp;#39;re caring about its perfromance, I admit such compilations must happen e.g. 1000 times per second. So it will die in ~ 1 day (8Gb ~= 100bytes*1000*60*60*24).</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8486822413101972100/4566311586192576602/comments/default/8721970946933145344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8486822413101972100/4566311586192576602/comments/default/8721970946933145344'/><link rel='alternate' type='text/html' href='http://tips.x-tensive.com/2009/05/fast-expression-compilation.html?showComment=1245673903208#c8721970946933145344' title=''/><author><name>Alex Yakunin</name><uri>http://www.blogger.com/profile/13800929290476802273</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='09650213915253068470'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://tips.x-tensive.com/2009/05/fast-expression-compilation.html' ref='tag:blogger.com,1999:blog-8486822413101972100.post-4566311586192576602' source='http://www.blogger.com/feeds/8486822413101972100/posts/default/4566311586192576602' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8486822413101972100.post-2436917199255590135</id><published>2009-06-22T18:09:19.703+06:00</published><updated>2009-06-22T18:09:19.703+06:00</updated><title type='text'>RE:
Simple expression compilation test:
- Expressi...</title><content type='html'>RE:&lt;br /&gt;Simple expression compilation test:&lt;br /&gt;- Expression: (int a, int b) =&amp;gt; a + b;&lt;br /&gt;- Without caching: 15,884 K compilations/s.&lt;br /&gt;- With caching: 45,158 K compilations/s.&lt;br /&gt;&lt;br /&gt;Of course caching would help if we compile the same expression millions times, but what about one time compilation ? I guess it is even slower...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8486822413101972100/4566311586192576602/comments/default/2436917199255590135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8486822413101972100/4566311586192576602/comments/default/2436917199255590135'/><link rel='alternate' type='text/html' href='http://tips.x-tensive.com/2009/05/fast-expression-compilation.html?showComment=1245672559703#c2436917199255590135' title=''/><author><name>Alex Ilyin</name><uri>http://www.blogger.com/profile/13553194641939208996</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='08799174518411330942'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://tips.x-tensive.com/2009/05/fast-expression-compilation.html' ref='tag:blogger.com,1999:blog-8486822413101972100.post-4566311586192576602' source='http://www.blogger.com/feeds/8486822413101972100/posts/default/4566311586192576602' type='text/html'/></entry></feed>