Hi,

> Okay, I can't really send you code thanks to the usual All Your Code

yes, I only can give you offer to have a look on it... ;)

> Are Belong To Us contract. I've noticed that the first hit when I visit
> a page is usually much slower, as if the framework were caching
> something.

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.

> This might well be my fault, instead of using RegisterTypeForAjax, I'm
> adding the script reference manually (add "/ajaxpro/type.ashx" to a
> List<string>; that list is written out during page_prerender)
>
> My business object hierarchy goes (basically)
>
> ProtectedObject [has properties for controlled access to resources]
>   DataObject [has additional properties for mapping to the database]
>      SomeObject

I have returned similar objects, too, but never had these slow
requests. Maybe there is still something different.

> Since the inherited properties are also written out, and there are a
> couple of enums, and all sorts of exciting things in there, I'm
> wondering if the serialization is just too heavy. I only need the
> properties of that leaf class, and one of those wants a different
> format anyway, so I'll try writing a custom serializer and if the
> problem continues, I'll just break my contract and send you some code,
> just 'cos I love you, Mr Schwarz.

;)

Regards,
Michael



>
> Cheers for your help so far,
>
>  -- flinky wisty pomm
>
>
> >
>


--
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