#211 Optimize TypeRegistry.cs

FlexWiki
closed-fixed
John Davidson
5
2008-11-06
2008-11-06
John Davidson
No

The TypeRegistry class is instantiated numerous times and the call to RegisterTypesFromAssembly has a try/catch block that can be improved with respect to some dynamic types. this should result in an overall performance gain in the display of topics.

Discussion

  • John Davidson
    John Davidson
    2008-11-06

    Build 2.1.0.287

    Converted TypeRegistry class to a Singleton and added some checks in RegisterTypesFromAssembly to reduce caught errors. Changed BELType and ExecutionContext classes for calls to TypeRegistry.

    Execution time for Unit Tests was reduce by 5 seconds from 85 secs to < 80 secs.
    Topic generation times were generally improved:
    a. 50% of topics no change in generation
    b. 10% of topics improved with a reduction of 50ms to output topic
    c. 30% of topics improved with a reduction of 100-150ms to output topic
    d. 2% of topics improved with a reduction of 300-1000ms to output topic
    e. 8% of topics worsened with an increase of 100ms to output topic

     
  • John Davidson
    John Davidson
    2008-11-06

    • status: open --> closed-fixed