[Mono-devel-list] System.Reflection Performance

Peter Williams peter at newton.cx
Fri Jan 2 13:08:48 EST 2004


Hi,

On Fri, 2004-01-02 at 12:06, Ben Maurer wrote:
> I agree, it is very important to get this information known inside the
> Mono development community. I see alot of mistakes that come up again
> and again, in the BCL and in MCS. We need to be proactive and audit for
> slow performance.

Can we start a list somewhere? I'm thinking of basic, concrete things,
like 

	* use 'string.Length == 0' instead of 'string == ""'
	* use 'for (int = 0; i < arraylist.Count; i++)' instead of 'foreach
(object item in arraylist)'

General optimization techniques are pretty much universal, but I think
there's a lot of simple stuff like the above that it would be nice to
have explicitly stated.

Peter

-- 
Peter Williams                          peter at newton.cx

"[Ninjas] are cool; and by cool, I mean totally sweet."
                              -- REAL Ultimate Power




More information about the Mono-devel-list mailing list