[gentle] Profiling 1.2.9
Brought to you by:
mnmr
From: Adam B. <ag...@gm...> - 2006-11-07 14:57:36
|
Profiling an application that uses Gentle 1.2.9, I discovered alot of time was spent in CacheManager.ClearQueryResultsByType(). The indexOf on line 279 is the main culprit and changing that line to: if (entry.Key.Length >= match.Length && entry.Key.Substring(0, match.Length).Equals(match)) from if (entry.Key.IndexOf(match) != -1) cuts the time in about half Adam |