----------------------------------------------------------- New Message on MumbaiUserGroup
----------------------------------------------------------- From: Edward Message 3 in Discussion Thanx Aamir, But the guidelines which u have mentioned, we have already used them in our code. we have that article in MSDN with us, but still we need to speed up Form Load. For improving performance, we are showing page-wise controls on a Form. So at Form Load only the Controls for Page1 are created at runtime on a Panel, On clicking the Next Button, the next set of controls for Page 2 are created on Panel 2,and the First Panel is hidden. But still it take 5-6 secs to load the First Panel, the major part of the time is used in creating the Controls. And also if there is an big SQL Query with joins across multiple tables (specially Left/Right Outer Joins), the time taken to execute the query is large. The time take to execute the query could be reduced by half, if that query is split and fired separately. The SQLCE Query optimizer does'nt seems to be working correctly for big queries. Is there some way by which the MSIL could be compiled in machine specific code, so JIT-compilation could be skipped ? Any other inputs for improvments would be appreciated. Thanx again Aamir Edward Fernandes -----Original Message----- From: aamirOnline [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 23, 2003 7:05 PM To: MumbaiUserGroup Subject: Re: Memory Issue in .Net Compact Framework New Message on MumbaiUserGroup Memory Issue in .Net Compact Framework Reply Reply to Sender Recommend Message 2 in Discussion From: aamirOnline Hi Its good that you use release the memory by IDisposable.Dispose() and GC.Collect(). still there are couple of things to be considered for improving the performance of the application. First thing - Designer not always generates an optimized code. Its alwas better to design forms ourselves. If you design a form, dont initialize the property which are not necessary. always try to use default properties. Reduce the method call - for example this.textBox1.Location = new Point(10,20); this.textBox1.Size =new Size(72,23); This can be consolidated into a single method call by using the Bounds property: this.textBox1.Bounds = new Rectangle(10,20,72,23); This will reduce the memory utilization If the form has too many controls try to split from in multiple form. while displaying new form dispose old form. Another method for improving performance is to initialize the controls in the control tree top-down. For example, if you have a panel control with many controls in it, create the panel first, and then add the controls to the panel. Also, setting the parent property of the control instead of adding to the Controls collection can improve performance. And finally if perfomance is critical issue for you always try to check loading time or execution time by utilizing Environment.TickCount property I hope these guidelines will help you out regards m aamir maniar View other groups in this category. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
