The "Reflection Start" and "Reflection End" is the code where the
class is created (that is hosting the Ajax.NET method) and where the
method is invoked, so it is the time that you method needs to execute.

Maybe you can add following code around your method to see more details:

[AjaxPro.AjaxMethod]
public static string MyMethod()
{
    DateTime start = DateTime.Now;

    // put here your complete code you are currently using

    return ((TimeSpan)(DateTime.Now - start)).TotalMilliseconds.ToString();
}


On the client-side JavaScript code you can display the res.value to
see how long your method is running. Maybe it is not the reflection
part...!

Regards,
Michael





On 4/4/06, Pathogenix <[EMAIL PROTECTED]> wrote:
>
> > This is the default behavior for .NET applications. The .NET runtime
> > will convert IL code to machine code, the ASP.NET runtime will compile
> > classes in App_Code and code begind files. This will be done on
> > request, so initial invokes are much slower than when running the
> > second call.
>
> Yeah, I'm cool on that, I'm pedanctic enough to precompile off the
> command line, what I'm saying is that the first time I make a call to a
> function on a page, it runs slower than a subsequent call. Browse away
> and return to the page, without  refreshing any DLLs, and there is
> still an initial performance hit.
>
> Frankly I'm inclined to think I've done something braindead somewhere
> but I've no idea what it could be, I'll see how the custom serializer
> affects things.
>
> So I can rule things out, when do the trace messages get fired? Does
> the End Reflection mean the entire invoke is complete, or just that the
> initial period of searching for the method is done? I'd look it up in
> reflector, but I'm lazy...
>
>
> >
>


--
Kind regards,
Michael Schwarz

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to