471,605 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

C# Attribute Overhead

Hi

Besides some initial startup overhead (possibly), i assume there is no
runtime overhead on
functions which have attributes associated with them ?
(i.e. the function itself or no other code is reading the attributes)

[myattributes]
void myfunction()

Thanks
Feb 7 '06 #1
1 2183
It really depends on the attribute; for your own bespoke attributes (read
via reflection) you should be OK - however many framework attributes (read
by the runtime itself) can change things at either JIT-time or runtime:
[NoInlining] for instance will force an extra call-stack step, potentially
reducing performance; there are others that perform permissions (demand)
checks, security checks, offer transaction support, etc...

Were there any specific ones you were interested in? (although MSDN/MSDN2
will cover all the framework ones)

Marc
Feb 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Roy Smith | last post: by
17 posts views Thread by Rune Strand | last post: by
8 posts views Thread by MikeB | last post: by
2 posts views Thread by mmcgarry.work | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.