{"id":278289,"date":"2016-04-14T14:55:03","date_gmt":"2016-04-14T10:55:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=278289"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=278289","title":{"rendered":"\u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0432\u044b\u0437\u043e\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438"},"content":{"rendered":"<br \/>\n<h4>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438 \u0432\u044b\u0432\u043e\u0434\u044b \u0434\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u043d\u0435 \u043b\u044e\u0431\u0438\u0442 \u0434\u043b\u0438\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/h4>\n<p>  <a name=\"top\"><\/a>  <\/p>\n<table>\n<tr>\n<th><\/th>\n<th>100.000 \u0432\u044b\u0437\u043e\u0432\u043e\u0432, 20 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0442\u0435\u0441\u0442\u0430, x86<\/th>\n<th>100.000 \u0432\u044b\u0437\u043e\u0432\u043e\u0432, 20 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0442\u0435\u0441\u0442\u0430, x64<\/th>\n<th>1.000.000 \u0432\u044b\u0437\u043e\u0432\u043e\u0432, 10 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0442\u0435\u0441\u0442\u0430, x86<\/th>\n<th>1.000.000 \u0432\u044b\u0437\u043e\u0432\u043e\u0432, 10 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0442\u0435\u0441\u0442\u0430, x64<\/th>\n<\/tr>\n<tr>\n<th><a href=\"#direct\">\u041f\u0440\u044f\u043c\u043e\u0439 \u0432\u044b\u0437\u043e\u0432<\/a><\/th>\n<td>\n<pre> Min: 10 ms Max: 11 ms Mean: 10,15 ms Median: 10 ms Abs: 1 <\/pre>\n<p>  <\/td>\n<td>\n<pre> min: 5 ms Max: 5 ms Mean: 5 ms Median: 5 ms Abs: 1 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 107 ms Max: 110 ms Mean: 107,8 ms Median: 107,5 ms Abs: 1 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 55 ms Max: 57 ms Mean: 55,3 ms Median: 55 ms Abs: 1 <\/pre>\n<p>  <\/td>\n<\/tr>\n<tr>\n<th><a href=\"#reflection\">\u0412\u044b\u0437\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u043e\u0442\u0440\u0430\u0436\u0435\u043d\u0438\u0435<\/a><\/th>\n<td>\n<pre> Min: 336 ms Max: 455 ms Mean: 359,45 ms Median: 342,5 ms Rel: 34 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 327 ms Max: 358 ms Mean: 336,1 ms Median: 335 ms Rel: 67 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 3362 ms Max: 3419 ms Mean: 3387,2 ms Median: 3385 ms Rel: 31 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 3334 ms Max: 3427 ms Mean: 3370,2 ms Median: 3363 ms Rel: 61 <\/pre>\n<p>  <\/td>\n<\/tr>\n<tr>\n<th><a href=\"#delegat\">\u0412\u044b\u0437\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0435\u0433\u0430\u0442<\/a><\/th>\n<td>\n<pre> Min: 657 ms Max: 1376 ms Mean: 728,4 ms Median: 684,5 ms Rel: 68 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 660 ms Max: 726 ms Mean: 686,05 ms Median: 685,5 ms Rel: 137 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 6586 ms Max: 13735 ms Mean: 7340,6 ms Median: 6632,5 ms Rel: 62 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 6501 ms Max: 6919 ms Mean: 6798 ms Median: 6828 ms Rel: 124 <\/pre>\n<p>  <\/td>\n<\/tr>\n<tr>\n<th><a href=\"#optdelegat\">\u0412\u044b\u0437\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0435\u0433\u0430\u0442 \u0441 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f\u043c\u0438<\/a><\/th>\n<td>\n<pre> Min: 67 ms Max: 86 ms Mean: 69,2 ms Median: 67,5 ms Rel: 6.7 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 79 ms Max: 88 ms Mean: 80,95 ms Median: 80 ms Rel: 16 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 683 ms Max: 7373 ms Mean: 1360,7 ms Median: 691 ms Rel: 6.5 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 775 ms Max: 814 ms Mean: 789,8 ms Median: 783,5 ms Rel: 12 <\/pre>\n<p>  <\/td>\n<\/tr>\n<tr>\n<th><a href=\"#dynamic\">\u0412\u044b\u0437\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 dynamic<\/a><\/th>\n<td>\n<pre> Min: 47 ms Max: 50 ms Mean: 48 ms Median: 48 ms Rel: 5 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 39 ms Max: 43 ms Mean: 41,25 ms Median: 41 ms Rel: 8 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 479 ms Max: 518 ms Mean: 492 ms Median: 487 ms Rel: 4.5 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 379 ms Max: 420 ms Mean: 392,1 ms Median: 387,5 ms Rel: 7 <\/pre>\n<p>  <\/td>\n<\/tr>\n<\/table>\n<p>  \u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438\u0438 .NET Framework 3.5 \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0435\u0433\u0430\u0442 \u0441 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0432\u044b\u0437\u043e\u0432\u0430. \u0414\u043b\u044f .NET Framework 4.0+ \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u043c \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 dynamic.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0444\u0444\u0442\u043e\u043f\u0430, \u043f\u0440\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u044b \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f<\/b><\/p>\n<div class=\"spoiler_text\">\u041d\u0430\u043f\u0438\u0448\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:  <\/p>\n<pre><code class=\"cs\">class SampleGeneric&lt;T&gt; {     public long Process(T obj)     {         return String.Format(&quot;{0} [{1}]&quot;, obj.ToString(), obj.GetType().FullName).Length;     } }  class Container {     private static Dictionary&lt;Type, object&gt; _instances = new Dictionary&lt;Type, object&gt;();      public static void Register&lt;T&gt;(SampleGeneric&lt;T&gt; instance)     {         if (false == _instances.ContainsKey(typeof(T)))         {             _instances.Add(typeof(T), instance);         }         else         {             _instances[typeof(T)] = instance;         }     }      public static SampleGeneric&lt;T&gt; Get&lt;T&gt;()     {         if (false == _instances.ContainsKey(typeof(T))) throw new KeyNotFoundException();         return (SampleGeneric&lt;T&gt;)_instances[typeof(T)];     }      public static object Get(Type type)     {         if (false == _instances.ContainsKey(type)) throw new KeyNotFoundException();         return _instances[type];     } } <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u043e\u0431\u043d\u044b\u0439 \u043a\u043e\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0447\u0430\u0441\u0442\u043e, \u0438 \u0432 \u043d\u0435\u043c \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u043e \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e, \u2014 \u0432 C# \u043d\u0435\u043b\u044c\u0437\u044f \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e generic \u0442\u0438\u043f\u043e\u0432 \u044f\u0432\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c. \u0412\u0441\u0435 \u0441\u043e\u0432\u0435\u0442\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u043d\u0430\u0445\u043e\u0434\u0438\u043b \u0441\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u043a \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044e \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e non-generic \u043a\u043b\u0430\u0441\u0441\u0430, \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0438\u043b\u0438 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0431\u0443\u0434\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u043d \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f. \u0422.\u0435. \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u0442\u0430\u043a\u043e\u0433\u043e:  <\/p>\n<pre><code class=\"cs\">public interface ISampleGeneric { } class SampleGeneric&lt;T&gt; : ISampleGeneric \/\/ private static Dictionary&lt;Type, ISampleGeneric&gt; _instances = new Dictionary&lt;Type, ISampleGeneric&gt;(); <\/code><\/pre>\n<p>  \u041d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0431\u044b\u043b\u043e \u0431\u044b \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u044f\u0437\u044b\u043a \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:  <\/p>\n<pre><code class=\"cs\">\/\/ \u041e\u0448\u0438\u0431\u043a\u0430 Type expected Dictionary&lt;Type, SampleGeneric&lt;&gt;&gt; <\/code><\/pre>\n<p>  \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u044f generic \u0442\u0438\u043f \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044e, \u043c\u044b \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0441\u0445\u043e\u0436\u0435\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0435\u0439:  <\/p>\n<pre><code class=\"cs\">typeof(SampleGeneric&lt;&gt;).MakeGenericType(typeof(string)) <\/code><\/pre>\n<p>  \u041d\u043e \u0432\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435. \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0430\u043d\u0441, \u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0432 non-generic \u043c\u0435\u0442\u043e\u0434\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u0435\u0442\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442 \u0438 \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u0435\u0433\u043e \u0442\u0438\u043f\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a.  <\/p>\n<pre><code class=\"cs\">void NonGenericMethod(object obj) {    var handler = Container.Get(obj.GetType()); } <\/code><\/pre>\n<p>  \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c, \u043d\u043e \u0441\u0440\u0435\u0434\u0430 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u0435\u043f\u0435\u0440\u044c handler.Process(obj), \u0430 \u0435\u0441\u043b\u0438 \u0438 \u043d\u0430\u043f\u0438\u0448\u0435\u043c, \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0440\u0443\u0433\u043d\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430.<br \/>  \u0412\u043e\u0442 \u0442\u0443\u0442 \u0442\u043e\u0436\u0435 \u043c\u043e\u0433\u043b\u0430 \u0431\u044b \u0431\u044b\u0442\u044c \u043e\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 C# \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0435:  <\/p>\n<pre><code class=\"cs\">Container.GetInstance&lt;fromtype(obj.GetType())&gt;().Process(obj); <\/code><\/pre>\n<p>  , \u043d\u043e \u0435\u0435 \u043d\u0435\u0442, \u0430 \u043c\u0435\u0442\u043e\u0434 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f (\u0445\u043e\u0442\u044f \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f Roslyn \u043c\u043e\u0436\u0435\u0442 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u0432 \u043d\u043e\u0432\u044b\u0445 IDE?). \u0421\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043c\u0430\u0441\u0441\u0430, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445. \u043e\u043d\u0438 \u0438 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u044b \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438.  <\/div>\n<\/div>\n<h4>\u041f\u0440\u043e \u043a\u043e\u0434<\/h4>\n<p>  \u041d\u0438\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432\u044b\u0437\u043e\u0432 \u043a\u043e\u0434\u0430 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u0432 \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u0435. \u0418\u0437 \u043a\u043e\u0434\u0430 \u0443\u0431\u0440\u0430\u043d\u044b \u0437\u0430\u043c\u0435\u0440\u044b \u0432\u0440\u0435\u043c\u0435\u043d\u0438\u0435, \u0437\u0430\u043c\u0435\u0440\u044b \u0434\u0435\u043b\u0430\u043b\u0438\u0441\u044c \u0447\u0435\u0440\u0435\u0437 Stopwatch. \u0414\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u0430 \u043d\u0435 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0436\u0435\u043b\u0435\u0437\u043e \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043d\u0435 \u0432\u0430\u0436\u043d\u044b. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043a, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441\u0445\u043e\u0436\u0438\u0435.<br \/>  \u0422\u0430\u043a\u0436\u0435 \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0430\u0445 \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u043f\u0440\u0435\u0434\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0434\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0434\u043e \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430, \u0442.\u043a. \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445, \u0432 \u0432\u044b\u0441\u043e\u043a\u043e\u043d\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447\u0430\u0445 \u0442\u0430\u043a\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437, \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043a\u044d\u0448\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0435.<\/p>\n<h5>\u041f\u0440\u044f\u043c\u043e\u0439 \u0432\u044b\u0437\u043e\u0432<\/h5>\n<p>  <a name=\"direct\"><\/a><br \/>  \u041f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u0440\u0433\u0430\u0435\u043c \u043c\u0435\u0442\u043e\u0434 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e. \u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0435, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 Abs \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0430, \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u0433\u043e \u0432 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u0432\u0438\u0434\u0435\u0442\u044c \u0437\u0430\u043c\u0435\u0434\u043b\u0435\u043d\u0438\u0435 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438 \u0432\u044b\u0437\u043e\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u0430 (\u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438 Rel).  <\/p>\n<pre><code class=\"cs\">public static TestResult TestDirectCall(DateTime arg) {     var instance = Container.Get&lt;DateTime&gt;();     long summ = 0;     for (long i = 0; i &lt; ITERATION_COUNT; i++)     {         summ += instance.Process(arg);     } \/\/ return } <\/code><\/pre>\n<h5>\u0412\u044b\u0437\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 Reflection<\/h5>\n<p>  <a name=\"reflection\"><\/a><br \/>  \u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c. \u0417\u0430\u0431\u0440\u0430\u043b\u0438 \u043c\u0435\u0442\u043e\u0434 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0438 \u0434\u0435\u0440\u0433\u0430\u0435\u043c \u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 Invoke. \u0412 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f, \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432.  <\/p>\n<pre><code class=\"cs\">public static TestResult TestReflectionCall(object arg) {     var instance = Container.Get(arg.GetType());     var method = instance.GetType().GetMethod(&quot;Process&quot;);     long summ = 0;     for (long i = 0; i &lt; ITERATION_COUNT; i++)     {         summ += (long)method.Invoke(instance, new object[] { arg });     } \/\/ return } <\/code><\/pre>\n<h5>\u0412\u044b\u0437\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0435\u0433\u0430\u0442 \u0438 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0435\u0433\u0430\u0442 \u0441 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0435\u0439<\/h5>\n<p>  <a name=\"delegat\"><\/a><br \/>  \u041a\u043e\u0434 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u0430  <\/p>\n<pre><code class=\"cs\">private static Delegate CreateDelegate(object target, MethodInfo method) {     var methodParameters = method.GetParameters();     var arguments = methodParameters.Select(d =&gt; Expression.Parameter(d.ParameterType, d.Name)).ToArray();     var instance = target == null ? null : Expression.Constant(target);     var methodCall = Expression.Call(instance, method, arguments);     return Expression.Lambda(methodCall, arguments).Compile(); } <\/code><\/pre>\n<p>  \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a\u043e\u0434 \u0442\u0435\u0441\u0442\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c:  <\/p>\n<pre><code class=\"cs\">public static TestResult TestDelegateCall(object arg) {     var instance = Container.Get(arg.GetType());     var hook = CreateDelegate(instance, instance.GetType().GetMethod(&quot;Process&quot;));     long summ = 0;     for (long i = 0; i &lt; ITERATION_COUNT; i++)     {         summ += (long)hook.DynamicInvoke(arg);     } \/\/ return } <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0437\u0430\u043c\u0435\u0434\u043b\u0435\u043d\u0438\u0435 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 Reflection \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0435\u0449\u0435 \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0432\u044b\u043a\u0438\u043d\u0443\u0442\u044c \u044d\u0442\u043e\u0442 \u043c\u0435\u0442\u043e\u0434, \u043d\u043e \u0435\u0441\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441. \u0427\u0435\u0441\u0442\u043d\u043e \u0441\u043a\u0430\u0436\u0443 \u0447\u0442\u043e \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0435\u0433\u043e \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 <a href=\"https:\/\/github.com\/ekonbenefits\/impromptu-interface\">Impromptu<\/a>, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u044d\u0442\u043e\u043c <a href=\"https:\/\/github.com\/ekonbenefits\/impromptu-interface\/tree\/master\/ImpromptuInterface\/src\/Optimization\">\u043c\u0435\u0441\u0442\u0435<\/a>.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u044b\u0437\u043e\u0432\u0430 \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">internal static object FastDynamicInvokeDelegate(Delegate del, params dynamic[] args) {     dynamic tDel = del;     switch (args.Length)     {         default:             try             {                 return del.DynamicInvoke(args);             }             catch (TargetInvocationException ex)             {                 throw ex.InnerException;             }     #region Optimization     case 1:         return tDel(args[0]);     case 2:         return tDel(args[0], args[1]);     case 3:         return tDel(args[0], args[1], args[2]);     case 4:         return tDel(args[0], args[1], args[2], args[3]);     case 5:         return tDel(args[0], args[1], args[2], args[3], args[4]);     case 6:         return tDel(args[0], args[1], args[2], args[3], args[4], args[5]);     case 7:         return tDel(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);     case 8:         return tDel(args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7]);     case 9:         return tDel(args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);     case 10:         return tDel(args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], args[9]);     case 11:         return tDel(args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], args[9], args[10]);     case 12:         return tDel(args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], args[9], args[10], args[11]);     case 13:         return tDel(args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], args[9], args[10], args[11], args[12]);     case 14:         return tDel(args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], args[9], args[10], args[11], args[12], args[13]);     case 15:         return tDel(args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], args[9], args[10], args[11], args[12], args[13], args[14]);     case 16:         return tDel(args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8], args[9], args[10], args[11], args[12], args[13], args[14], args[15]);         #endregion     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u0435\u043d\u044f\u0435\u043c \u043a\u043e\u0434 \u0442\u0435\u0441\u0442\u0430<br \/>  <a name=\"optdelegat\"><\/a>  <\/p>\n<pre><code class=\"cs\">public static TestResult TestDelegateOptimizeCall(object arg) {     var instance = Container.Get(arg.GetType());     var hook = CreateDelegate(instance, instance.GetType().GetMethod(&quot;Process&quot;));     long summ = 0;     for (long i = 0; i &lt; ITERATION_COUNT; i++)     {         summ += (long)FastDynamicInvokeDelegate(hook, arg);     } \/\/ return } <\/code><\/pre>\n<p>  \u0418 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0434\u0435\u0441\u044f\u0442\u0438\u043a\u0440\u0430\u0442\u043d\u043e\u0435 \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u0435 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u0430. \u041d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u044d\u0442\u043e \u043b\u0443\u0447\u0448\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0438\u0437 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043d\u044b\u0445.<\/p>\n<h5>\u0412\u044b\u0437\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 dynamic<\/h5>\n<p>  <a name=\"dynamic\"><\/a><br \/>  \u0418 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0433\u043b\u0430\u0432\u043d\u043e\u043c\u0443 \u0433\u0435\u0440\u043e\u044e (\u0435\u0441\u043b\u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0432\u044b \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0435 legacy \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043e .NET 4.0)  <\/p>\n<pre><code class=\"cs\">public static TestResult TestDynamicCall(dynamic arg) {     var instance = Container.Get(arg.GetType());     dynamic hook = CreateDelegate(instance, instance.GetType().GetMethod(&quot;Process&quot;));     long summ = 0;     for (long i = 0; i &lt; ITERATION_COUNT; i++)     {         summ += hook(arg);     } \/\/ return } <\/code><\/pre>\n<p>  \u0412\u0441\u0435 \u0447\u0442\u043e \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0435\u0433\u0430\u0442, \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e dynamic, \u0447\u0435\u043c \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u0438 \u0441\u0440\u0435\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0430\u043c\u043e\u0439 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Dynamic_Language_Runtime\">DLR<\/a> \u0432\u044b\u0437\u043e\u0432 \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u0430. \u041f\u043e \u0441\u0443\u0442\u0438 \u0432\u044b\u043a\u0438\u043d\u0443\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043d\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u043e\u0432. \u0418 \u0443\u0441\u043a\u043e\u0440\u0438\u043b\u0438\u0441\u044c \u0435\u0449\u0435 \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u0434\u0435\u043b\u0435\u0433\u0430\u0442\u043e\u0432. <\/p>\n<p>  <a href=\"https:\/\/github.com\/ogoun\/FastCallMethodsSample\/tree\/master\">\u041a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/a><\/p>\n<p>  <a href=\"#top\">\u0412\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c<\/a>               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/279367\/\"> https:\/\/habrahabr.ru\/post\/279367\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<br \/>\n<h4>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438 \u0432\u044b\u0432\u043e\u0434\u044b \u0434\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u043d\u0435 \u043b\u044e\u0431\u0438\u0442 \u0434\u043b\u0438\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/h4>\n<p>  <a name=\"top\"><\/a>  <\/p>\n<table>\n<tr>\n<th><\/th>\n<th>100.000 \u0432\u044b\u0437\u043e\u0432\u043e\u0432, 20 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0442\u0435\u0441\u0442\u0430, x86<\/th>\n<th>100.000 \u0432\u044b\u0437\u043e\u0432\u043e\u0432, 20 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0442\u0435\u0441\u0442\u0430, x64<\/th>\n<th>1.000.000 \u0432\u044b\u0437\u043e\u0432\u043e\u0432, 10 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0442\u0435\u0441\u0442\u0430, x86<\/th>\n<th>1.000.000 \u0432\u044b\u0437\u043e\u0432\u043e\u0432, 10 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0442\u0435\u0441\u0442\u0430, x64<\/th>\n<\/tr>\n<tr>\n<th><a href=\"#direct\">\u041f\u0440\u044f\u043c\u043e\u0439 \u0432\u044b\u0437\u043e\u0432<\/a><\/th>\n<td>\n<pre> Min: 10 ms Max: 11 ms Mean: 10,15 ms Median: 10 ms Abs: 1 <\/pre>\n<p>  <\/td>\n<td>\n<pre> min: 5 ms Max: 5 ms Mean: 5 ms Median: 5 ms Abs: 1 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 107 ms Max: 110 ms Mean: 107,8 ms Median: 107,5 ms Abs: 1 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 55 ms Max: 57 ms Mean: 55,3 ms Median: 55 ms Abs: 1 <\/pre>\n<p>  <\/td>\n<\/tr>\n<tr>\n<th><a href=\"#reflection\">\u0412\u044b\u0437\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u043e\u0442\u0440\u0430\u0436\u0435\u043d\u0438\u0435<\/a><\/th>\n<td>\n<pre> Min: 336 ms Max: 455 ms Mean: 359,45 ms Median: 342,5 ms Rel: 34 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 327 ms Max: 358 ms Mean: 336,1 ms Median: 335 ms Rel: 67 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 3362 ms Max: 3419 ms Mean: 3387,2 ms Median: 3385 ms Rel: 31 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 3334 ms Max: 3427 ms Mean: 3370,2 ms Median: 3363 ms Rel: 61 <\/pre>\n<p>  <\/td>\n<\/tr>\n<tr>\n<th><a href=\"#delegat\">\u0412\u044b\u0437\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0435\u0433\u0430\u0442<\/a><\/th>\n<td>\n<pre> Min: 657 ms Max: 1376 ms Mean: 728,4 ms Median: 684,5 ms Rel: 68 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 660 ms Max: 726 ms Mean: 686,05 ms Median: 685,5 ms Rel: 137 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 6586 ms Max: 13735 ms Mean: 7340,6 ms Median: 6632,5 ms Rel: 62 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 6501 ms Max: 6919 ms Mean: 6798 ms Median: 6828 ms Rel: 124 <\/pre>\n<p>  <\/td>\n<\/tr>\n<tr>\n<th><a href=\"#optdelegat\">\u0412\u044b\u0437\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0435\u0433\u0430\u0442 \u0441 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f\u043c\u0438<\/a><\/th>\n<td>\n<pre> Min: 67 ms Max: 86 ms Mean: 69,2 ms Median: 67,5 ms Rel: 6.7 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 79 ms Max: 88 ms Mean: 80,95 ms Median: 80 ms Rel: 16 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 683 ms Max: 7373 ms Mean: 1360,7 ms Median: 691 ms Rel: 6.5 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 775 ms Max: 814 ms Mean: 789,8 ms Median: 783,5 ms Rel: 12 <\/pre>\n<p>  <\/td>\n<\/tr>\n<tr>\n<th><a href=\"#dynamic\">\u0412\u044b\u0437\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 dynamic<\/a><\/th>\n<td>\n<pre> Min: 47 ms Max: 50 ms Mean: 48 ms Median: 48 ms Rel: 5 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 39 ms Max: 43 ms Mean: 41,25 ms Median: 41 ms Rel: 8 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 479 ms Max: 518 ms Mean: 492 ms Median: 487 ms Rel: 4.5 <\/pre>\n<p>  <\/td>\n<td>\n<pre> Min: 379 ms Max: 420 ms Mean: 392,1 ms Median: 387,5 ms Rel: 7 <\/pre>\n<p>  <\/td>\n<\/tr>\n<\/table>\n<p>  \u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438\u0438 .NET Framework 3.5 \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0435\u0433\u0430\u0442 \u0441 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0432\u044b\u0437\u043e\u0432\u0430. \u0414\u043b\u044f .NET Framework 4.0+ \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u043c \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 dynamic.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-278289","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/278289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=278289"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/278289\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=278289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=278289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=278289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}