ProCoSys / Bifrost

Application Development Framework promoting good development practices such as CQRS and MVVM (see readme)
http://bifrost.dolittle.com
Other
1 stars 1 forks source link

TypeDiscoverer.FindTypeByFullName is too slow #27

Closed bnordli closed 8 years ago

bnordli commented 8 years ago

After profiling the ProCoSys application, the TypeDiscoverer.FindTypeByFullName accounts for 3,6% of samples. (It is mostly called by ReadModelService.InstanceMatching.)

The reason it is slow is because TypeFinder.FindTypeByFullName iterates over all known types and checks their fullname. The result of this lookup should be cached.

andersnygaard commented 8 years ago

Fixed by pull request #37