Performance Question

Topics: Mobile Client Software Factory
May 31, 2006 at 4:50 AM
originally posted by: m_a_madero

I was wondering what would be better for performance:
To have a Factory or having static classes.
Or declare Services and ServiceDependencys.

I guess the Factory or static classes might be faster, because it doesnt need reflection, the real question is, is this really a significant difference?

We have been trying to measure performance in different areas without success and we dont know what could we change here to make it faster, the only thing I could think of right now is on the reflection thing.

Please let me know your opinion.
May 31, 2006 at 4:53 AM
originally posted by: dcazzulino

Another approach is to pre-gen at compile time the OB policies that are ultimately inferred from the dependency attributes, and have them be implemented in a strongly-typed way for better performance. This way, the reflection work is done at compile-time, and at runtime there's no difference between code you would have written manually to look up the dependencies and set the values manually.
May 31, 2006 at 5:06 AM
originally posted by: m_a_madero

Do you know where could I find info about pre-generating the OB policies?
Sounds like that would really help.