﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Chris Kemp commented on UberProf performance improvements, nothing helps if you are stupid</title><description>Definitely QOTD, and quite fitting, given the emails that I've just been handling today.
</description><link>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment9</link><guid>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment9</guid><pubDate>Fri, 08 Jan 2010 14:38:01 GMT</pubDate></item><item><title>Kelly Stuard commented on UberProf performance improvements, nothing helps if you are stupid</title><description>"Nothing helps if you are stupid" -- love it; my QOTD!
</description><link>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment8</link><guid>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment8</guid><pubDate>Mon, 28 Dec 2009 16:31:04 GMT</pubDate></item><item><title>Ayende Rahien commented on UberProf performance improvements, nothing helps if you are stupid</title><description>I have to do a lot of text processing.
  
Can you think of anything better suited than regexes to do that?
  
From both performance and maintainability points of view?
</description><link>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment7</link><guid>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment7</guid><pubDate>Sat, 26 Dec 2009 06:40:13 GMT</pubDate></item><item><title>Peli commented on UberProf performance improvements, nothing helps if you are stupid</title><description>Have you tought about _not_ using Regexes at all?
</description><link>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment6</link><guid>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment6</guid><pubDate>Sat, 26 Dec 2009 00:25:00 GMT</pubDate></item><item><title>Ayende Rahien commented on UberProf performance improvements, nothing helps if you are stupid</title><description>Firefly,
  
The problem is that you only get ~15 LRU cache.
  
That doesn't work for something like the profiler, who does a LOT of regexes
</description><link>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment5</link><guid>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment5</guid><pubDate>Fri, 25 Dec 2009 20:14:17 GMT</pubDate></item><item><title>firefly commented on UberProf performance improvements, nothing helps if you are stupid</title><description>MS actually recommend to use the static methods on Regex in most cased since it'll be cached automatically. I've always found it more intuitive to do the caching myself hence turn it into a static field.
</description><link>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment4</link><guid>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment4</guid><pubDate>Fri, 25 Dec 2009 15:16:17 GMT</pubDate></item><item><title>James Newton-King commented on UberProf performance improvements, nothing helps if you are stupid</title><description>Creating a new Regex object with the compiled option does cause it to be compiled over and over, destroying performance. I've been caught out by it myself.
  
  
The solution is to either reuse the same object or use one of the static methods on Regex, which do look up to see whether a compiled instance of the regex already exists.
</description><link>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment3</link><guid>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment3</guid><pubDate>Fri, 25 Dec 2009 11:26:21 GMT</pubDate></item><item><title>Frans Bouma commented on UberProf performance improvements, nothing helps if you are stupid</title><description>still odd though, as creating a regex will always pull a cached instance into itself which does the actual work. You have a little bit of overhead from looking up the instance and the key construction (check the ctor) but it's not recompiled over and over again. So that it has drastic performance improvements is a little unexpected. 
</description><link>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment2</link><guid>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment2</guid><pubDate>Fri, 25 Dec 2009 10:39:52 GMT</pubDate></item><item><title>meo commented on UberProf performance improvements, nothing helps if you are stupid</title><description>Funny bug. It seems this object was polluting address space of application while being compiled again and again into new assembly and hooking up till app ends.
</description><link>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment1</link><guid>http://ayende.com/4338/uberprof-performance-improvements-nothing-helps-if-you-are-stupid#comment1</guid><pubDate>Fri, 25 Dec 2009 10:35:11 GMT</pubDate></item></channel></rss>