Hi
The only differences in performance that I have noticed by now (between the
managed code and the script) were in the event handlers, I guess it's a bug
in InfoPath, but otherwise, my managed code is working way faster than the
Java Script, of course I am still limited with the speed of the DOM, but so
do the java script.
A large form today (one of my forms) takes from 3 to 5 seconds to fully open
(from the time it's clicked on the web site, to the time its opened on the
end user machine, and that includes the automated xml generation in the
background that is comming from SQL Server, etc).
You just need to be a bit more careful with the code, and Microsoft must
publish something about the event handlers, and their possible workarounds,
to make a bit easier for the other developers.
Another issue that you may have with InfoPath, and may slow down the
performance, is an improper combination use of Conditional Formatting, and
Rules, I had one of these problems in a from (a form with a 2000+ controls)
and this improper combination was cussing the form about 20 seconds delay.
I was thinking that the conditional formatting was slow, but after comparing
that form with another form, that was much complex than the original one, we
found out that the conditional formatting actually is fast, its just simple
xsl (its speed depends of the complexity of the form, but it is still
relatively fast).
By today it has been 1 year and one month since I have started developing
applications for InfoPath using C# (I started with the SP1 beta), I did
complain a lot in these newsgroups the past year
![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I guess they hate me
for that, the product has a lot of limitations that I don't like, but it is
still the most suitable product for my project.
I hope their next release either uses Avalon instead of XSL/MSHTML.DLL, or
the Microsoft Word/Excel Engine, in the background.
Good luck