Faster Known Types in Orcas
When I talked about some of the enhancements in Orcas, I left out a performance improvement for services that use a large number of known types. There are various ways of defining the known types for a service operation, and all of the known type collections are aggregated together for use the first time that an unknown type needs to become a known type. The performance of that first call grew increasingly worse rather quickly as the number of known types increased, although the performance of successive calls was not affected.
This slowdown was fixed in Orcas (you don't need Orcas SP1 to get it). If you are seeing a pattern of slow first calls that is improved by not declaring known types, then you may want to see if installing Orcas makes your first call faster.
Next time: Common Setup Tasks
Comments
Anonymous
May 21, 2008
FaultException supports both an untyped variant, for when you don't have any particularly interestingAnonymous
May 25, 2008
Hi Nicholas, I'm finding the terminology here a little hard to follow. Orcas was a release of Visual Studio. Are you saying that those utilising known types extensively may run into performance issues on .NET 3.0, but these are fixed in .NET 3.5? Or was this issue also fixed in 3.0 with the Orcas release? If the issue still exists in 3.0, are there any plans to fix this in a service pack for 3.0? (for those you were wanting interoperability with 2.0 CLR).Anonymous
May 26, 2008
The comment has been removed