AcceptVisitor performance question
 
CapableObjects Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



AcceptVisitor performance question Expand / Collapse
Author
Message
Posted 2010-03-02 22:15:15
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Today @ 05:01:26
Posts: 129, Visits: 4 817
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.

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.

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

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?

Rick Weyrauch

  Post Attachments 
AcceptVisitor.jpg (15 views, 133,01 KB)

Post #4951
Posted 2010-03-03 11:34:44
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: 2010-07-21 00:21:24
Posts: 1 228, Visits: 1 373
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:

What is the expression?
Is any data prefetched?



/Jonas Hogstrom [CapableObjects]
Post #4955
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: HansKarlsen, Jonas Hogstrom

Permissions Expand / Collapse

All times are GMT +1:00, Time now is 4:22

Powered By InstantForum.NET v4.1.4 © 2010
Execution: 0,203. 9 queries. Compression Disabled.