The following sample shows how expensive it is to resolve types using a DI container. On my notebook it showed the following:
00:00:00.0040000
00:00:01.7080000
00:00:00.1640000
As you can easily see resolving a type with Unity is something like at least 40 times slower. Is it worth it? I believe yes because you'll catch up with the performance on good design.
0 comments:
Post a Comment
Post a comment