[Mono-bugs] [Bug 405146] New Rule: Avoid exposing string constants

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jul 1 04:28:40 EDT 2008


User msafar at novell.com added comment

--- Comment #3 from Marek Safar <msafar at novell.com>  2008-07-01 02:28:40 MDT ---
I think this rule should apply to strings only, other constants can be folded
and are usually just 1-8 bytes, so you may get some performance benefits.

However for strings, the runtime has to do a lookup every time it loads a
string constant which can be expensive.

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list