ANN: InitializeComponent Optimizer

J

Justin Weinberg

Announcing the MRGSoft InitializeComponent Optimizer.

Full details at:

http://www.mrgsoft.com/products/ICO/


The InitializeComponent Optimizer is a VS 2003 add-in that automates the CF
load peformance optimizations discussed by Neil Cowburn in his MSDN article:

http://msdn.microsoft.com/library/d...s/dnnetcomp/html/netcfimproveformloadperf.asp

As well as by Chris tacke on OpenNetCF.org:

http://opennetcf.org/Forums/topic.asp?TOPIC_ID=297

If you're tired of seeing all of your load optimization work disappear
because you moved a button on a form, this add-in can help.

Of interest to CF developers, the InitializeComponent Optimizer :

- Sorts control assignments top down for optimal CF performance
- Replaces location and size pairs with bound statements

Additionally the InitializeComponent Optimizer allows for:

- Optional removal of .Name assignments (full framework relevant only)
- The assumption of System.Drawing import and uniqueness and removal of full
specifications
- The assumption of a Windows.Forms import and uniqueness and remove
specifications from instantiation statements
- Removal of Me / this declarations where redundant

The optimizer:

- Can be automated to apply on save and/or build
- Can be set to scope for solutions, projects, or specific files
- Can be set to apply strictly to Windows form objects or Usercontrols (full
framework relevant only)
- Includes safety options (confirmation and save current statement as a
comment block) for unanticipated situations.

--
Justin Weinberg

Designing a PrintDocument or creating .NET graphics?
Save time with GDI+ Architect.
For more information, visit http://www.mrgsoft.com
 
H

Hilton

Justin,

Some ideas off the top of my head.

1. Can I run it from the command-line? I think would use it like that. My
thinking is - how can a development team generate a class and use it in both
full framework and Compact Framework environments; i.e. keep one copy
around, and run this utility before compiling.
2. Add an option: "Make Compact Framework compatible"
3. Why *remove" "this"? I always use 'this'. Anyway, personal options...
4. Add some performance numbers to the web page - especially important with
the 'Compact Framework' option; i.e. show how start time went from 6 seconds
to 4 seconds for example.

Anyway, seems like a useful utility (although it could be made irrelavent in
the next release of VS) so I would suggest thinking of more powerful
features.

Hilton
 
J

Justin Weinberg

Good suggestions!
1. Can I run it from the command-line? I think would use it like that. My
thinking is - how can a development team generate a class and use it in both
full framework and Compact Framework environments; i.e. keep one copy
around, and run this utility before compiling.

Unfortunately, not at the moment. Since we display a "modal" dialogue for
the options, we disabled the command line abilities of the add-in as
recommended by MS. We'll look at changing this behavior in the future.
3. Why *remove" "this"? I always use 'this'. Anyway, personal
options...

You can enable and/or disable any of the optimizers and reformatters you
like using the options. Some people like the this / Me qualifier; others
find it makes reading through code more difficult.

Personally, I use a combination: the _ for member variables, and Me/this for
when I refer to a self property accessors e.g..

Private _FirstName as String
...
Me.FirstName =

4. Add some performance numbers to the web page - especially important with
the 'Compact Framework' option; i.e. show how start time went from 6 seconds
to 4 seconds for example.

Great suggestion. We'll do that.
Anyway, seems like a useful utility (although it could be made irrelevant in
the next release of VS) so I would suggest thinking of more powerful
features.

Agree. We're not sure how long the optimizer will be relevant, but we hope
$23.95 is comparable to a developer's opportunity cost to perform the
optimizations manually.

--
Justin Weinberg

Designing a PrintDocument or creating .NET graphics?
Save time with GDI+ Architect.



For more information, visit http://www.mrgsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top