﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>CapableObjects Forums / ECO / General discussions  / AcceptVisitor performance question / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>CapableObjects Forums</description><link>http://www.capableobjects.com/apps/InstantForum414/</link><webMaster>forums@capableobjects.com</webMaster><lastBuildDate>Wed, 08 Feb 2012 22:45:44 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: AcceptVisitor performance question</title><link>http://www.capableobjects.com/apps/InstantForum414/Topic4951-4-1.aspx</link><description>If you drill down into that function you will probably find that it performs fetches. the GetEntry-operation retrieves a preparsed ocl-expression from a parse-tree cache and is expected to be fast. It is hard to tell if you can make it faster without knowing the following:&lt;br&gt;&lt;br&gt;What is the expression?&lt;br&gt;Is any data prefetched?&lt;br&gt;&lt;br&gt;</description><pubDate>Wed, 03 Mar 2010 11:34:44 GMT</pubDate><dc:creator>Jonas Hogstrom</dc:creator></item><item><title>AcceptVisitor performance question</title><link>http://www.capableobjects.com/apps/InstantForum414/Topic4951-4-1.aspx</link><description>I was doing a performance trace to see where my loop was lagging. Of course, I found that the majority of the lag was from the non-Eco part of my loop, but I did notice an oddity while looking at the Eco timeline.&lt;/P&gt;&lt;P&gt;I have a situation where I am looking up a record by search criteria. The search table is expected to be large, very large even, and so I am doing it in a 2 part process. 1) OclPs.Execute() and if not found there, 2) Ocl.Evaluate() against allLoadedObjects - part 2 is because the one I am looking for might be a new one in memory.&lt;/P&gt;&lt;P&gt;I know I only had a small number of objects loaded and so I was surprised to see that the Execute (754ms) was better than twice as fast as the Evaluate (1692ms) so I drilled down into the Evaluate() to see what took so long. It spent nearly all of it's time in AcceptVisitor (1529ms) and only a very small amount of time in GetEntry (158ms). SEE ATTACHED PIC&lt;/P&gt;&lt;P&gt;My questions are: 1) What is it doing in that function that takes so long (relatively)? and 2) Can I avoid it or make it faster?</description><pubDate>Tue, 02 Mar 2010 22:15:15 GMT</pubDate><dc:creator>RickWeyrauch</dc:creator></item></channel></rss>
