{"id":494211,"date":"2026-09-10T10:21:55","date_gmt":"2026-09-10T10:21:55","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=494211"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=494211","title":{"rendered":"\u0410 \u0447\u0451, \u0442\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e? Dictionary == List"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041a\u043b\u044e\u0447-\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0438\u0437 \u0447\u0438\u0441\u043b\u0430 \u0438 \u0441\u0442\u0440\u043e\u043a\u0438. \u041f\u043e\u0438\u0441\u043a \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u044e \u043d\u0430 10 000 \u0442\u0430\u043a\u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 74 975 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434. \u0422\u043e\u0442 \u0436\u0435 \u043a\u043b\u044e\u0447, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u044b\u0439 record struct, \u2014 3,354 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b.<\/p>\n<p>\u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 22 354 \u0440\u0430\u0437\u0430, \u0438 \u0431\u0435\u0440\u0451\u0442\u0441\u044f \u043e\u043d\u0430 \u043d\u0435 \u0438\u0437 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0435\u0439. \u0412\u0441\u0435 10 000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043f\u043e\u043f\u0430\u043b\u0438 \u0432 \u043e\u0434\u0438\u043d \u0431\u0430\u043a\u0435\u0442: \u0443 \u043d\u0438\u0445 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0445\u0435\u0448. \u0421\u043b\u043e\u0432\u0430\u0440\u044c \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043e\u043a, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0438\u0434\u0451\u0442 \u043f\u0435\u0440\u0435\u0431\u043e\u0440.\u00a0<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041c\u0430\u0448\u0438\u043d\u0430<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u0421\u0438\u0441\u0442\u0435\u043c\u0430<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041a\u043e\u043c\u043f  1<\/p>\n<\/td>\n<td>\n<p align=\"center\">Intel Core i9-10900KF 3.70GHz, 10   \u044f\u0434\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"center\">Windows 10 22H2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041a\u043e\u043c\u043f  2<\/p>\n<\/td>\n<td>\n<p align=\"center\">AMD Ryzen 9 5950X 3.39GHz, 16 \u044f\u0434\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"center\">Windows 10 1809<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041a\u043e\u043c\u043f  3<\/p>\n<\/td>\n<td>\n<p align=\"center\">Intel Xeon W-2255 3.70GHz, 10 \u044f\u0434\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"center\">Windows Server 2022<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041a\u043e\u043c\u043f  4<\/p>\n<\/td>\n<td>\n<p align=\"center\">Intel Xeon Silver 4314 2.40GHz, 2   CPU, 32 \u044f\u0434\u0440\u0430<\/p>\n<\/td>\n<td>\n<p align=\"center\">Windows Server 2022<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><em>\u0412\u0441\u0435 \u043c\u0430\u0448\u0438\u043d\u044b x64<\/em><\/p>\n<p>\u0420\u0430\u043d\u0442\u0430\u0439\u043c\u044b .NET 8, 9 \u0438 10 \u2014 \u0432\u0441\u0435 \u0442\u0440\u0438 \u0432 \u043e\u0434\u043d\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 <a href=\"https:\/\/benchmarkdotnet.org\/\" rel=\"noopener nofollow\">BenchmarkDotNet<\/a> 0.15.8. \u0427\u0438\u0441\u043b\u0430 \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u0441 AMD Ryzen 9 5950X, \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e \u0432\u0441\u0435\u043c \u0447\u0435\u0442\u044b\u0440\u0451\u043c \u043c\u0430\u0448\u0438\u043d\u0430\u043c.<\/p>\n<h3>1. \u041a\u043b\u044e\u0447, \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0451\u0442 \u0431\u044b\u0442\u044c \u0441\u043b\u043e\u0432\u0430\u0440\u0451\u043c<\/h3>\n<h4>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a<\/h4>\n<p>\u0421\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0439 \u043a\u043b\u044e\u0447 \u0432\u0438\u0434\u0430 \u00ab\u0442\u0438\u043f \u0437\u0430\u043f\u0438\u0441\u0438 \u0438 \u0435\u0451 \u0438\u043c\u044f\u00bb. \u0427\u0438\u0441\u043b\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442\u0441\u044f, \u0441\u0442\u0440\u043e\u043a\u0430 \u0443 \u043a\u0430\u0436\u0434\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0441\u0432\u043e\u044f:<\/p>\n<pre><code class=\"cs\">internal struct NumberFirst{    internal int A;      \/\/ \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435    internal string B;   \/\/ \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u0441\u0432\u043e\u0451}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a\u043e\u0439 \u043a\u043b\u044e\u0447 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0441\u043b\u043e\u0432\u0430\u0440\u044c:<\/p>\n<pre><code class=\"cs\">Dictionary&lt;NumberFirst, int&gt; map = new(count); for (int i = 0; i &lt; count; i++){    map[new NumberFirst { A = 1, B = texts[i] }] = i;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0440<\/h4>\n<p>\u041f\u043e\u0438\u0441\u043a \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u044e \u0438\u0437 10 000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, 256 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0439 \u0437\u0430 \u0432\u044b\u0437\u043e\u0432. \u0412\u0441\u0435 \u0448\u0435\u0441\u0442\u044c \u0441\u043b\u043e\u0432\u0430\u0440\u0435\u0439 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0438\u0437 \u043e\u0434\u043d\u0438\u0445 \u0438 \u0442\u0435\u0445 \u0436\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0435\u0439.\u00a0<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"208\" width=\"208\">\n<p align=\"left\"><strong>\u041a\u043b\u044e\u0447<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 1<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 2<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 3<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 4<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"208\" width=\"208\">\n<p align=\"left\">\u0447\u0438\u0441\u043b\u043e, \u0441\u0442\u0440\u043e\u043a\u0430<\/p>\n<\/td>\n<td>\n<p align=\"center\">69 430,125<\/p>\n<\/td>\n<td>\n<p align=\"center\">74 974,622<\/p>\n<\/td>\n<td>\n<p align=\"center\">91 522,879<\/p>\n<\/td>\n<td>\n<p align=\"center\">115 766,058<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"208\" width=\"208\">\n<p align=\"left\">\u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u0445\u0435\u0448\u0430<\/p>\n<\/td>\n<td>\n<p align=\"center\">4 035,570<\/p>\n<\/td>\n<td>\n<p align=\"center\">4 019,258<\/p>\n<\/td>\n<td>\n<p align=\"center\">6 848,745<\/p>\n<\/td>\n<td>\n<p align=\"center\">6 602,455<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"208\" width=\"208\">\n<p align=\"left\">\u0441\u0442\u0440\u043e\u043a\u0430, \u0447\u0438\u0441\u043b\u043e<\/p>\n<\/td>\n<td>\n<p align=\"center\">30,151<\/p>\n<\/td>\n<td>\n<p align=\"center\">30,119<\/p>\n<\/td>\n<td>\n<p align=\"center\">34,575<\/p>\n<\/td>\n<td>\n<p align=\"center\">44,964<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"208\" width=\"208\">\n<p align=\"left\">\u0431\u0435\u0437 \u0441\u0441\u044b\u043b\u043e\u043a \u0432\u043d\u0443\u0442\u0440\u0438<\/p>\n<\/td>\n<td>\n<p align=\"center\">8,774<\/p>\n<\/td>\n<td>\n<p align=\"center\">10,474<\/p>\n<\/td>\n<td>\n<p align=\"center\">11,729<\/p>\n<\/td>\n<td>\n<p align=\"center\">12,300<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"208\" width=\"208\">\n<p align=\"left\">\u0441\u0432\u043e\u0439 \u0445\u0435\u0448<\/p>\n<\/td>\n<td>\n<p align=\"center\">6,143<\/p>\n<\/td>\n<td>\n<p align=\"center\">4,592<\/p>\n<\/td>\n<td>\n<p align=\"center\">5,908<\/p>\n<\/td>\n<td>\n<p align=\"center\">6,483<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"208\" width=\"208\">\n<p align=\"left\">record struct<\/p>\n<\/td>\n<td>\n<p align=\"center\">4,866<\/p>\n<\/td>\n<td>\n<p align=\"center\">3,354<\/p>\n<\/td>\n<td>\n<p align=\"center\">4,586<\/p>\n<\/td>\n<td>\n<p align=\"center\">4,879<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><em>\u041c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b, .NET 10<\/em>\u00a0<\/p>\n<p>\u041f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432 14 268\u201323 727 \u0440\u0430\u0437 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043c\u0430\u0448\u0438\u043d\u044b.<\/p>\n<p>\u041d\u0430 .NET 8 \u0438 .NET 9 \u0440\u0430\u0437\u0440\u044b\u0432 \u0435\u0449\u0451 \u0431\u043e\u043b\u044c\u0448\u0435:\u00a0<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0420\u0430\u043d\u0442\u0430\u0439\u043c<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 1<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 2<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 3<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 4<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">.NET 8<\/p>\n<\/td>\n<td>\n<p align=\"center\">205   263,676<\/p>\n<\/td>\n<td>\n<p align=\"center\">366   908,497<\/p>\n<\/td>\n<td>\n<p align=\"center\">275   283,953<\/p>\n<\/td>\n<td>\n<p align=\"center\">309   657,300<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">.NET 9<\/p>\n<\/td>\n<td>\n<p align=\"center\">128   643,347<\/p>\n<\/td>\n<td>\n<p align=\"center\">178   689,332<\/p>\n<\/td>\n<td>\n<p align=\"center\">178   409,297<\/p>\n<\/td>\n<td>\n<p align=\"center\">207   162,240<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">.NET 10<\/p>\n<\/td>\n<td>\n<p align=\"center\">69   430,125<\/p>\n<\/td>\n<td>\n<p align=\"center\">74   974,622<\/p>\n<\/td>\n<td>\n<p align=\"center\">91   522,879<\/p>\n<\/td>\n<td>\n<p align=\"center\">115   766,058<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><em>\u041c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u043a\u043b\u044e\u0447 \u00ab\u0447\u0438\u0441\u043b\u043e, \u0441\u0442\u0440\u043e\u043a\u0430\u00bb<\/em><\/p>\n<p>\u041e\u0442\u0441\u0442\u0430\u0432\u0430\u043d\u0438\u0435 \u043e\u0442 \u043a\u043b\u044e\u0447\u0430-\u0437\u0430\u043f\u0438\u0441\u0438 105 737 \u0440\u0430\u0437 \u043d\u0430 .NET 8 \u0438 56 086 \u043d\u0430 .NET 9. \u041f\u043e\u0438\u0441\u043a \u0443\u0441\u043a\u043e\u0440\u0438\u043b\u0438 \u0432\u0442\u0440\u043e\u0435 \u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u0438 \u043a \u0432\u0435\u0440\u0441\u0438\u0438, \u043d\u043e \u0440\u0430\u0437\u0440\u044b\u0432 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0432 \u0442\u044b\u0441\u044f\u0447\u0438 \u0440\u0430\u0437.<\/p>\n<h4>\u041f\u0440\u0438\u0447\u0438\u043d\u0430<\/h4>\n<p>\u0425\u0435\u0448 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0441\u0447\u0438\u0442\u0430\u0435\u0442 <a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/coreclr\/System.Private.CoreLib\/src\/System\/ValueType.cs#L89\" rel=\"noopener nofollow\">ValueType.GetHashCode<\/a>. \u0412 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043a \u043c\u0435\u0442\u043e\u0434\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e: \u0431\u0435\u0440\u0451\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u043e\u0435 \u043d\u0435\u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u043e\u043b\u0435 \u0438 \u0435\u0433\u043e \u0445\u0435\u0448.<\/p>\n<pre><code class=\"cs\">\/\/ Our algorithm for returning the hashcode is a little bit complex.\/\/ We look for the first non-static field and get its hashcode.\/\/ If the type has no non-static fields, we return the hashcode of the type.<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a \u0431\u044b\u0432\u0430\u0435\u0442 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f <a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/coreclr\/System.Private.CoreLib\/src\/System\/ValueType.cs#L73\" rel=\"noopener nofollow\">\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430<\/a> CanCompareBitsOrUseFastGetHashCode: \u0435\u0441\u043b\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0441\u044b\u043b\u043e\u043a \u0438 \u0432 \u043d\u0435\u0439 \u043d\u0435\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u043b\u044f\u043c\u0438, \u0445\u0435\u0448 \u0441\u0440\u0430\u0437\u0443 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c \u0435\u0451 \u0431\u0430\u0439\u0442\u0430\u043c.<\/p>\n<p>\u041f\u043e\u043b\u0435 \u0442\u0438\u043f\u0430 string \u2014 \u0441\u0441\u044b\u043b\u043a\u0430. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442, \u0438 \u0445\u0435\u0448 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u043f\u043e\u043b\u044e. \u041f\u0435\u0440\u0432\u043e\u0435 \u043f\u043e\u043b\u0435 \u0443 \u0432\u0441\u0435\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u043d\u0430\u0431\u043e\u0440\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0435, \u0437\u043d\u0430\u0447\u0438\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432 \u0438 \u0445\u0435\u0448.<\/p>\n<p>\u041e\u0442\u0447\u0451\u0442 \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 \u043d\u0430\u0431\u043e\u0440\u0435 \u0438\u0437 1000 \u043a\u043b\u044e\u0447\u0435\u0439 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<pre><code class=\"cs\">  \u043a\u043b\u044e\u0447                \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0445\u0435\u0448\u0435\u0439   \u0437\u0430\u043d\u044f\u0442\u043e \u0431\u0430\u043a\u0435\u0442\u043e\u0432   \u0441\u0430\u043c\u0430\u044f \u0434\u043b\u0438\u043d\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u043a\u0430   \u0447\u0438\u0441\u043b\u043e, \u0441\u0442\u0440\u043e\u043a\u0430                   1          1 \u0438\u0437 1103                 1000  \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u0445\u0435\u0448\u0430              1          1 \u0438\u0437 1103                 1000  \u0441\u0442\u0440\u043e\u043a\u0430, \u0447\u0438\u0441\u043b\u043e                1000        671 \u0438\u0437 1103                    5  \u0441\u0432\u043e\u0439 \u0445\u0435\u0448                     1000        656 \u0438\u0437 1103                    5  \u0437\u0430\u043f\u0438\u0441\u044c                       1000        669 \u0438\u0437 1103                    5  \u0431\u0435\u0437 \u0441\u0441\u044b\u043b\u043e\u043a                   1000        661 \u0438\u0437 1103                    6<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041e\u0434\u0438\u043d \u0437\u0430\u043d\u044f\u0442\u044b\u0439 \u0431\u0430\u043a\u0435\u0442 \u0438\u0437 1103, \u0438 \u0432 \u043d\u0451\u043c \u0432\u0441\u0435 1000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439. \u041f\u043e\u0438\u0441\u043a \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u0438\u0445 \u043f\u043e\u0434\u0440\u044f\u0434, \u043a\u0430\u043a \u0441\u043f\u0438\u0441\u043e\u043a.<\/p>\n<h4>\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f<\/h4>\n<p>\u0420\u0435\u0448\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0438\u043d\u043e\u0432\u0430\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0430. \u0423 \u0442\u043e\u0433\u043e \u0436\u0435 \u043a\u043b\u044e\u0447\u0430 \u0441 \u043f\u043e\u043b\u044f\u043c\u0438 \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f 1000 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0445\u0435\u0448\u0435\u0439: \u0445\u0435\u0448 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0435, \u0438 \u043e\u043d \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0432\u043e\u0439.<\/p>\n<p>\u0420\u0435\u0448\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u0435\u043b\u043e \u0432 \u0440\u0430\u0437\u043c\u0435\u0440\u0435 \u043d\u0430\u0431\u043e\u0440\u0430. \u041d\u0430 1000 \u043a\u043b\u044e\u0447\u0435\u0439 \u0440\u0430\u0437\u0440\u044b\u0432 \u043c\u0435\u043d\u044c\u0448\u0435, \u043d\u043e \u043e\u043d \u0442\u0430\u043c \u0436\u0435: 12 744 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043f\u0440\u043e\u0442\u0438\u0432 2,792.<\/p>\n<h3>2. \u0414\u0435\u043b\u043e \u043d\u0435 \u0432 \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0435<\/h3>\n<h4>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a<\/h4>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435, \u043e \u0447\u0451\u043c \u0434\u0443\u043c\u0430\u044e\u0442 \u0432 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438, \u2014 \u0447\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 Equals(object) \u0438 \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f. \u041f\u0440\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0431\u044b\u043b\u0430 <a href=\"https:\/\/habr.com\/ru\/articles\/1062854\/\" rel=\"noopener nofollow\">\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f<\/a>, \u0442\u0430\u043c \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432\u044b\u0445\u043e\u0434\u0438\u043b\u0430 \u0432 5 \u0440\u0430\u0437.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043e\u0442\u0434\u0435\u043b\u0438\u0442\u044c \u043e\u0434\u043d\u043e \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e, \u0432 \u0437\u0430\u043c\u0435\u0440\u0435 \u0435\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u044e\u0447: \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0438 \u043d\u0435\u0442, \u0430 GetHashCode \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0431\u0430\u0437\u043e\u0432\u044b\u043c.<\/p>\n<pre><code class=\"cs\">internal struct EquatableOnly : IEquatable&lt;EquatableOnly&gt;{    internal int A;    internal string B;     public bool Equals(EquatableOnly other) =&gt; A == other.A &amp;&amp; B == other.B;    public override bool Equals(object? other) =&gt; other is EquatableOnly key &amp;&amp; Equals(key);     \/\/ GetHashCode \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0440<\/h4>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"196\" width=\"196\">\n<p align=\"left\"><strong>\u041a\u043b\u044e\u0447<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 1<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 2<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 3<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 4<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"196\" width=\"196\">\n<p align=\"left\">\u0447\u0438\u0441\u043b\u043e, \u0441\u0442\u0440\u043e\u043a\u0430<\/p>\n<\/td>\n<td>\n<p align=\"center\">69 430,125<\/p>\n<\/td>\n<td>\n<p align=\"center\">74 974,622<\/p>\n<\/td>\n<td>\n<p align=\"center\">91 522,879<\/p>\n<\/td>\n<td>\n<p align=\"center\">115 766,058<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"196\" width=\"196\">\n<p align=\"left\">\u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u0445\u0435\u0448\u0430<\/p>\n<\/td>\n<td>\n<p align=\"center\">4 035,570<\/p>\n<\/td>\n<td>\n<p align=\"center\">4 019,258<\/p>\n<\/td>\n<td>\n<p align=\"center\">6 848,745<\/p>\n<\/td>\n<td>\n<p align=\"center\">6 602,455<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"196\" width=\"196\">\n<p align=\"left\">record struct<\/p>\n<\/td>\n<td>\n<p align=\"center\">4,866<\/p>\n<\/td>\n<td>\n<p align=\"center\">3,354<\/p>\n<\/td>\n<td>\n<p align=\"center\">4,586<\/p>\n<\/td>\n<td>\n<p align=\"center\">4,879<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><em>\u041c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b, .NET 10<\/em><\/p>\n<p>\u0421\u0432\u043e\u0451 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0443\u0431\u0438\u0440\u0430\u0435\u0442 \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0443 \u0438 \u0443\u0441\u043a\u043e\u0440\u044f\u0435\u0442 \u043f\u043e\u0438\u0441\u043a \u0432 17,2 \u0440\u0430\u0437\u0430. \u0414\u043e \u043a\u043b\u044e\u0447\u0430-\u0437\u0430\u043f\u0438\u0441\u0438 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0435\u0449\u0451 1198 \u0440\u0430\u0437: \u0437\u0430\u043f\u0438\u0441\u0438 \u0442\u0430\u043a \u0438 \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u0432 \u043e\u0434\u043d\u043e\u043c \u0431\u0430\u043a\u0435\u0442\u0435, \u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u0439.<\/p>\n<h4>\u041f\u0440\u0438\u0447\u0438\u043d\u0430<\/h4>\n<p>\u0423\u043f\u0430\u043a\u043e\u0432\u043a\u0430 \u0438 \u0445\u0435\u0448 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c \u043d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u044b. IEquatable \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0442\u043e, \u043a\u0430\u043a \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0434\u0432\u0430 \u043a\u043b\u044e\u0447\u0430. GetHashCode \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0442\u043e, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u044e\u0447\u0435\u0439 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c.<\/p>\n<p>\u041f\u0440\u0438 \u043e\u0434\u043d\u043e\u043c \u0445\u0435\u0448\u0435 \u043d\u0430 \u0432\u0435\u0441\u044c \u043d\u0430\u0431\u043e\u0440 \u0432\u0442\u043e\u0440\u043e\u0435 \u043f\u0435\u0440\u0435\u0432\u0435\u0448\u0438\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0435 \u043d\u0430 \u0442\u0440\u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u0430.<\/p>\n<h4>\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f<\/h4>\n<p>\u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c IEquatable \u0438 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0437\u0430\u043a\u0440\u044b\u0442\u043e\u0439. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u0435\u0442 \u043f\u0440\u043e \u043d\u0435\u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u0439 Equals, \u043d\u043e \u043f\u0440\u043e GetHashCode \u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043d\u0435 \u0441\u043a\u0430\u0436\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e: \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0435\u0441\u0442\u044c, \u0438 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0432\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435.<\/p>\n<h3>3. \u0425\u0435\u0448\u0438 \u0440\u0430\u0437\u043d\u044b\u0435, \u0430 \u043f\u043e\u0438\u0441\u043a \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439<\/h3>\n<h4>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a<\/h4>\n<p>\u041a\u043b\u044e\u0447 \u0441 \u043f\u043e\u043b\u044f\u043c\u0438 \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435. \u0425\u0435\u0448 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0435, \u0432\u0441\u0435 1000 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0440\u0430\u0437\u043d\u044b\u0435, \u0437\u0430\u043f\u0438\u0441\u0438 \u0440\u0430\u0437\u043e\u0448\u043b\u0438\u0441\u044c \u043f\u043e 671 \u0431\u0430\u043a\u0435\u0442\u0443:<\/p>\n<pre><code class=\"cs\">internal struct TextFirst{    internal string B;    internal int A;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0440<\/h4>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"190\" width=\"190\">\n<p align=\"left\"><strong>\u041a\u043b\u044e\u0447<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 1<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 2<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 3<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 4<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"190\" width=\"190\">\n<p align=\"left\">\u0441\u0442\u0440\u043e\u043a\u0430, \u0447\u0438\u0441\u043b\u043e<\/p>\n<\/td>\n<td>\n<p align=\"center\">30,151<\/p>\n<\/td>\n<td>\n<p align=\"center\">30,119<\/p>\n<\/td>\n<td>\n<p align=\"center\">34,575<\/p>\n<\/td>\n<td>\n<p align=\"center\">44,964<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"190\" width=\"190\">\n<p align=\"left\">\u0431\u0435\u0437 \u0441\u0441\u044b\u043b\u043e\u043a \u0432\u043d\u0443\u0442\u0440\u0438<\/p>\n<\/td>\n<td>\n<p align=\"center\">8,774<\/p>\n<\/td>\n<td>\n<p align=\"center\">10,474<\/p>\n<\/td>\n<td>\n<p align=\"center\">11,729<\/p>\n<\/td>\n<td>\n<p align=\"center\">12,300<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"190\" width=\"190\">\n<p align=\"left\">\u0441\u0432\u043e\u0439 \u0445\u0435\u0448<\/p>\n<\/td>\n<td>\n<p align=\"center\">6,143<\/p>\n<\/td>\n<td>\n<p align=\"center\">4,592<\/p>\n<\/td>\n<td>\n<p align=\"center\">5,908<\/p>\n<\/td>\n<td>\n<p align=\"center\">6,483<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"190\" width=\"190\">\n<p align=\"left\">record struct<\/p>\n<\/td>\n<td>\n<p align=\"center\">4,866<\/p>\n<\/td>\n<td>\n<p align=\"center\">3,354<\/p>\n<\/td>\n<td>\n<p align=\"center\">4,586<\/p>\n<\/td>\n<td>\n<p align=\"center\">4,879<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><em>\u041c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b, .NET 10<\/em>\u00a0<\/p>\n<p>\u0417\u0430\u043f\u0438\u0441\u0438 \u0440\u0430\u0437\u043b\u043e\u0436\u0435\u043d\u044b \u043f\u043e \u0431\u0430\u043a\u0435\u0442\u0430\u043c, \u0430 \u043f\u043e\u0438\u0441\u043a \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u0432 6,2\u20139,2 \u0440\u0430\u0437\u0430.<\/p>\n<h4>\u041f\u0440\u0438\u0447\u0438\u043d\u0430<\/h4>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442, GetHashCode \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0440\u0451\u0442 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u043e\u043b\u0435. \u041e\u043d \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 <a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/coreclr\/vm\/comutilnative.cpp#L1696\" rel=\"noopener nofollow\">\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043e\u0434 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0430<\/a>, \u0433\u0434\u0435 \u043f\u043e\u043b\u044f \u0442\u0438\u043f\u0430 \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0437\u0430\u043d\u043e\u0432\u043e, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0439\u0434\u0451\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0435\u0435. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0431\u0445\u043e\u0434 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435. \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 30 \u0438 3,4 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b.<\/p>\n<p>\u0423 \u043a\u043b\u044e\u0447\u0430 \u0431\u0435\u0437 \u0441\u0441\u044b\u043b\u043e\u043a \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442, \u0438 \u0445\u0435\u0448 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c \u0431\u0430\u0439\u0442\u0430\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b. \u0412\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u0441\u0432\u043e\u0435\u0433\u043e: 10,474 \u043f\u0440\u043e\u0442\u0438\u0432 4,592.<\/p>\n<h4>\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f<\/h4>\n<p>\u0420\u0435\u0448\u0438\u0442\u044c, \u0447\u0442\u043e \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0445\u0432\u0430\u0442\u0438\u0442, \u0440\u0430\u0437 \u0445\u0435\u0448\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0440\u0430\u0437\u043d\u044b\u043c\u0438. \u0420\u0430\u0437\u043d\u044b\u0435 \u0445\u0435\u0448\u0438 \u0443\u0431\u0438\u0440\u0430\u044e\u0442 \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u0432 \u0442\u044b\u0441\u044f\u0447\u0438 \u0440\u0430\u0437, \u043d\u043e \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0438 \u0445\u0435\u0448\u0430 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f.<\/p>\n<h3>4. \u041a\u0430\u043a \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043b\u044e\u0447-\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443<\/h3>\n<h4>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a<\/h4>\n<p>\u0414\u0432\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430. \u041f\u0435\u0440\u0432\u044b\u0439 \u2014 \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u043a\u043b\u044e\u0447 \u0437\u0430\u043f\u0438\u0441\u044c\u044e, \u0442\u043e\u0433\u0434\u0430 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0438 \u0445\u0435\u0448 \u043d\u0430\u043f\u0438\u0448\u0435\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440:<\/p>\n<pre><code class=\"cs\">internal readonly record struct RecordKey(int A, string B);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 \u2014 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c GetHashCode:<\/p>\n<pre><code class=\"cs\">public override int GetHashCode() =&gt; HashCode.Combine(A, B);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h4>\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0440<\/h4>\n<p>\u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0441\u043b\u043e\u0432\u0430\u0440\u044f \u0438\u0437 5000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439. \u0422\u0443\u0442 \u043d\u0430\u0431\u043e\u0440 \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0432 \u043f\u043e\u0438\u0441\u043a\u0435, \u0438 \u0432\u043e\u0442 \u043f\u043e\u0447\u0435\u043c\u0443: \u043a\u043e\u0433\u0434\u0430 \u0445\u0435\u0448 \u0443 \u0432\u0441\u0435\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439, \u043a\u0430\u0436\u0434\u0430\u044f \u043d\u043e\u0432\u0430\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0430 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c\u0438. \u041d\u0430 10 000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0442\u0430\u043a\u043e\u0439 \u0437\u0430\u043c\u0435\u0440 \u0438\u0434\u0451\u0442 \u043c\u0438\u043d\u0443\u0442\u0430\u043c\u0438.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"191\" width=\"191\">\n<p align=\"left\"><strong>\u041a\u043b\u044e\u0447<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 1<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 2<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 3<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u041a\u043e\u043c\u043f 4<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"191\" width=\"191\">\n<p align=\"left\">\u0447\u0438\u0441\u043b\u043e, \u0441\u0442\u0440\u043e\u043a\u0430<\/p>\n<\/td>\n<td>\n<p align=\"center\">793 643,66<\/p>\n<\/td>\n<td>\n<p align=\"center\">959 232,75<\/p>\n<\/td>\n<td>\n<p align=\"center\">1 161 838,32<\/p>\n<\/td>\n<td>\n<p align=\"center\">1 239 249,33<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"191\" width=\"191\">\n<p align=\"left\">\u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u0445\u0435\u0448\u0430<\/p>\n<\/td>\n<td>\n<p align=\"center\">35 885,39<\/p>\n<\/td>\n<td>\n<p align=\"center\">36 388,74<\/p>\n<\/td>\n<td>\n<p align=\"center\">66 057,18<\/p>\n<\/td>\n<td>\n<p align=\"center\">60 668,67<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"191\" width=\"191\">\n<p align=\"left\">\u0441\u0442\u0440\u043e\u043a\u0430, \u0447\u0438\u0441\u043b\u043e<\/p>\n<\/td>\n<td>\n<p align=\"center\">293,53<\/p>\n<\/td>\n<td>\n<p align=\"center\">300,52<\/p>\n<\/td>\n<td>\n<p align=\"center\">354,86<\/p>\n<\/td>\n<td>\n<p align=\"center\">487,71<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"191\" width=\"191\">\n<p align=\"left\">\u0441\u0432\u043e\u0439 \u0445\u0435\u0448<\/p>\n<\/td>\n<td>\n<p align=\"center\">152,21<\/p>\n<\/td>\n<td>\n<p align=\"center\">140,60<\/p>\n<\/td>\n<td>\n<p align=\"center\">205,36<\/p>\n<\/td>\n<td>\n<p align=\"center\">242,26<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"191\" width=\"191\">\n<p align=\"left\">record struct<\/p>\n<\/td>\n<td>\n<p align=\"center\">127,78<\/p>\n<\/td>\n<td>\n<p align=\"center\">119,17<\/p>\n<\/td>\n<td>\n<p align=\"center\">171,35<\/p>\n<\/td>\n<td>\n<p align=\"center\">193,09<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><em>\u041c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b, .NET 10<\/em>\u00a0<\/p>\n<p>\u041e\u0442 0,79 \u0434\u043e 1,24 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043f\u0440\u043e\u0442\u0438\u0432 \u0441\u0442\u0430 \u0434\u0432\u0430\u0434\u0446\u0430\u0442\u0438 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434. \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043e\u0442 6211 \u0434\u043e 8049 \u0440\u0430\u0437.<\/p>\n<p>\u0421 \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0430 \u0442\u0430\u043a\u0430\u044f \u0436\u0435. \u0417\u0430 256 \u043f\u043e\u0438\u0441\u043a\u043e\u0432 \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u044e \u043d\u0430 10 000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439:\u00a0<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>\u041a\u043b\u044e\u0447<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"center\"><strong>\u0412\u044b\u0434\u0435\u043b\u0435\u043d\u043e<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0447\u0438\u0441\u043b\u043e, \u0441\u0442\u0440\u043e\u043a\u0430<\/p>\n<\/td>\n<td>\n<p align=\"center\">195 638 375 \u0431\u0430\u0439\u0442<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0441\u0442\u0440\u043e\u043a\u0430, \u0447\u0438\u0441\u043b\u043e<\/p>\n<\/td>\n<td>\n<p align=\"center\">47 104 \u0431\u0430\u0439\u0442\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0431\u0435\u0437 \u0441\u0441\u044b\u043b\u043e\u043a \u0432\u043d\u0443\u0442\u0440\u0438<\/p>\n<\/td>\n<td>\n<p align=\"center\">18 432 \u0431\u0430\u0439\u0442\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u0445\u0435\u0448\u0430<\/p>\n<\/td>\n<td>\n<p align=\"center\">8 192 \u0431\u0430\u0439\u0442\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0441\u0432\u043e\u0439 \u0445\u0435\u0448<\/p>\n<\/td>\n<td>\n<p align=\"center\">0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">record struct<\/p>\n<\/td>\n<td>\n<p align=\"center\">0<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><em>\u0421\u0442\u043e\u043b\u0431\u0435\u0446 Allocated, .NET 10, \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445<\/em><\/p>\n<h4>\u041f\u0440\u0438\u0447\u0438\u043d\u0430<\/h4>\n<p>\u0411\u0430\u0437\u043e\u0432\u043e\u0435 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044e \u0438 \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u044f. \u0423\u043c\u043d\u043e\u0436\u044c\u0442\u0435 \u043d\u0430 10 000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 \u0431\u0430\u043a\u0435\u0442\u0435 \u2014 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 195 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 \u0431\u0430\u0439\u0442 \u043d\u0430 256 \u043f\u043e\u0438\u0441\u043a\u043e\u0432.<\/p>\n<p>\u0423 \u043a\u043b\u044e\u0447\u0430 \u0441\u043e \u0441\u0432\u043e\u0438\u043c \u0445\u0435\u0448\u0435\u043c \u0438 \u0441\u0432\u043e\u0438\u043c \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435\u043c \u0432 \u043a\u0443\u0447\u0435 \u043d\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0438\u0447\u0435\u0433\u043e.<\/p>\n<h4>\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f<\/h4>\n<p>\u0412\u0437\u044f\u0442\u044c record struct \u0438 \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043e\u043d readonly. \u0418\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 \u043a\u043b\u044e\u0447 \u0432 \u0441\u043b\u043e\u0432\u0430\u0440\u0435 \u043e\u043f\u0430\u0441\u0435\u043d \u0441\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435: \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f.<\/p>\n<h3>\u0413\u0440\u0430\u043d\u0438\u0446\u044b \u0437\u0430\u043c\u0435\u0440\u043e\u0432<\/h3>\n<p>\u0412\u0441\u0435 \u0441\u043b\u043e\u0432\u0430\u0440\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0441\u0442\u0440\u043e\u043a, \u0441\u0442\u0440\u043e\u043a\u0438 \u0433\u043e\u0442\u043e\u0432\u044f\u0442\u0441\u044f \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0438 \u0432 \u0437\u0430\u043c\u0435\u0440 \u043d\u0435 \u0432\u0445\u043e\u0434\u044f\u0442. \u0421\u043b\u043e\u0432\u0430\u0440\u044f\u043c \u0437\u0430\u0434\u0430\u043d\u0430 \u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e \u0447\u0438\u0441\u043b\u0443 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043d\u0435 \u043f\u043e\u043f\u0430\u043b\u0438 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442.<\/p>\n<p>\u0417\u0430 \u043e\u0434\u0438\u043d \u0432\u044b\u0437\u043e\u0432 \u0437\u0430\u043c\u0435\u0440\u0430 \u043f\u043e\u0438\u0441\u043a\u0430 \u0438\u0434\u0451\u0442 256 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0439, \u043d\u043e\u043c\u0435\u0440\u0430 \u043a\u043b\u044e\u0447\u0435\u0439 \u0432\u0437\u044f\u0442\u044b \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043d\u0430\u0431\u043e\u0440\u0443. \u0412\u0441\u0435 256 \u043e\u0431\u044f\u0437\u0430\u043d\u044b \u043d\u0430\u0439\u0442\u0438\u0441\u044c \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0441\u0432\u0435\u0440\u043a\u0430.<\/p>\n<p>\u0427\u0438\u0441\u043b\u043e \u0432 \u043a\u043b\u044e\u0447\u0435 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u0443 \u0432\u0441\u0435\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043d\u0430\u0431\u043e\u0440\u0430: \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0439 \u043a\u043b\u044e\u0447, \u0433\u0434\u0435 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u043e\u043b\u0435 \u2014 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f \u0438\u043b\u0438 \u0442\u0438\u043f. \u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u043e\u043b\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e, \u0432\u0441\u0435 \u0445\u0435\u0448\u0438 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u043d\u044b\u043c\u0438, \u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f \u0438\u0437 \u0442\u0440\u0435\u0442\u044c\u0435\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430.<\/p>\n<p>\u0412\u0441\u0435 \u0437\u0430\u043c\u0435\u0440\u044b \u0441\u043d\u044f\u0442\u044b \u043d\u0430 x64 \u043f\u043e\u0434 Windows, \u043d\u0430 .NET 8, 9 \u0438 10.<\/p>\n<h3>\u041a\u043e\u0434 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438<\/h3>\n<ul>\n<li>\n<p><a href=\"https:\/\/github.com\/ComboxSoftDeveloper\/KeyHashProof\" rel=\"noopener nofollow\">KeyHashProof<\/a> \u2014 \u0437\u0430\u043c\u0435\u0440\u044b, \u043e\u0442\u0447\u0451\u0442\u044b \u0438 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u0441 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u043c\u0430\u0448\u0438\u043d<\/p>\n<\/li>\n<\/ul>\n<h3>\u0421\u0441\u044b\u043b\u043a\u0438<\/h3>\n<ul>\n<li>\n<p><a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/coreclr\/System.Private.CoreLib\/src\/System\/ValueType.cs#L89\" rel=\"noopener nofollow\">ValueType.GetHashCode: \u0445\u0435\u0448 \u0431\u0435\u0440\u0451\u0442\u0441\u044f \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/coreclr\/System.Private.CoreLib\/src\/System\/ValueType.cs#L73\" rel=\"noopener nofollow\">\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0445\u0435\u0448 \u043f\u043e \u0432\u0441\u0435\u043c \u0431\u0430\u0439\u0442\u0430\u043c<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/dotnet\/runtime\/blob\/60629d14374c56f1cb51819049ad1fa529307f8d\/src\/libraries\/System.Private.CoreLib\/src\/System\/Collections\/Generic\/Dictionary.cs#L400\" rel=\"noopener nofollow\">Dictionary.FindValue, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0438\u0434\u0451\u0442 \u043f\u043e\u0438\u0441\u043a<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/articles\/1062854\/\" rel=\"noopener nofollow\">\u041f\u0440\u043e\u0448\u043b\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f: \u0442\u0430 \u0436\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u043d\u043e \u043f\u0440\u043e \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0443<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/learn.microsoft.com\/dotnet\/api\/system.hashcode.combine\" rel=\"noopener nofollow\">HashCode.Combine<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/learn.microsoft.com\/dotnet\/csharp\/language-reference\/builtin-types\/record\" rel=\"noopener nofollow\">Record types<\/a><\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0412\u0441\u0435\u043c \u0443\u0434\u0430\u0447\u0438 \u0438 \u0434\u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0441\u0442\u0440\u0435\u0447!<\/strong><\/p>\n<\/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:\/\/habr.com\/ru\/articles\/1080782\/\">https:\/\/habr.com\/ru\/articles\/1080782\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u043b\u044e\u0447-\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0438\u0437 \u0447\u0438\u0441\u043b\u0430 \u0438 \u0441\u0442\u0440\u043e\u043a\u0438. \u041f\u043e\u0438\u0441\u043a \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u044e \u043d\u0430 10 000 \u0442\u0430\u043a\u0438\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 74 975 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434. \u0422\u043e\u0442 \u0436\u0435 \u043a\u043b\u044e\u0447, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u044b\u0439 record struct, \u2014 3,354 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b.\u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 22 354 \u0440\u0430\u0437\u0430, \u0438 \u0431\u0435\u0440\u0451\u0442\u0441\u044f \u043e\u043d\u0430 \u043d\u0435 \u0438\u0437 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0435\u0439. \u0412\u0441\u0435 10 000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043f\u043e\u043f\u0430\u043b\u0438 \u0432 \u043e\u0434\u0438\u043d \u0431\u0430\u043a\u0435\u0442: \u0443 \u043d\u0438\u0445 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0445\u0435\u0448. \u0421\u043b\u043e\u0432\u0430\u0440\u044c \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0441\u044f \u0432 \u0441\u043f\u0438\u0441\u043e\u043a, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0438\u0434\u0451\u0442 \u043f\u0435\u0440\u0435\u0431\u043e\u0440.\u00a0\u041c\u0430\u0448\u0438\u043d\u0430\u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0421\u0438\u0441\u0442\u0435\u043c\u0430\u041a\u043e\u043c\u043f  1Intel Core i9-10900KF 3.70GHz, 10   \u044f\u0434\u0435\u0440Windows 10 22H2\u041a\u043e\u043c\u043f  2AMD Ryzen 9 5950X 3.39GHz, 16 \u044f\u0434\u0435\u0440Windows 10 1809\u041a\u043e\u043c\u043f  3Intel Xeon W-2255 3.70GHz, 10 \u044f\u0434\u0435\u0440Windows Server 2022\u041a\u043e\u043c\u043f  4Intel Xeon Silver 4314 2.40GHz, 2   CPU, 32 \u044f\u0434\u0440\u0430Windows Server 2022\u0412\u0441\u0435 \u043c\u0430\u0448\u0438\u043d\u044b x64\u0420\u0430\u043d\u0442\u0430\u0439\u043c\u044b .NET 8, 9 \u0438 10 \u2014 \u0432\u0441\u0435 \u0442\u0440\u0438 \u0432 \u043e\u0434\u043d\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 BenchmarkDotNet 0.15.8. \u0427\u0438\u0441\u043b\u0430 \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u0441 AMD Ryzen 9 5950X, \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e \u0432\u0441\u0435\u043c \u0447\u0435\u0442\u044b\u0440\u0451\u043c \u043c\u0430\u0448\u0438\u043d\u0430\u043c.1. \u041a\u043b\u044e\u0447, \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0451\u0442 \u0431\u044b\u0442\u044c \u0441\u043b\u043e\u0432\u0430\u0440\u0451\u043c\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0421\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0439 \u043a\u043b\u044e\u0447 \u0432\u0438\u0434\u0430 \u00ab\u0442\u0438\u043f \u0437\u0430\u043f\u0438\u0441\u0438 \u0438 \u0435\u0451 \u0438\u043c\u044f\u00bb. \u0427\u0438\u0441\u043b\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442\u0441\u044f, \u0441\u0442\u0440\u043e\u043a\u0430 \u0443 \u043a\u0430\u0436\u0434\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0441\u0432\u043e\u044f:internal struct NumberFirst{    internal int A;      \/\/ \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435    internal string B;   \/\/ \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u0441\u0432\u043e\u0451}\u0422\u0430\u043a\u043e\u0439 \u043a\u043b\u044e\u0447 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0441\u043b\u043e\u0432\u0430\u0440\u044c:Dictionary&lt;NumberFirst, int&gt; map = new(count); for (int i = 0; i &lt; count; i++){    map[new NumberFirst { A = 1, B = texts[i] }] = i;}\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0440\u041f\u043e\u0438\u0441\u043a \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u044e \u0438\u0437 10 000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, 256 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0439 \u0437\u0430 \u0432\u044b\u0437\u043e\u0432. \u0412\u0441\u0435 \u0448\u0435\u0441\u0442\u044c \u0441\u043b\u043e\u0432\u0430\u0440\u0435\u0439 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0438\u0437 \u043e\u0434\u043d\u0438\u0445 \u0438 \u0442\u0435\u0445 \u0436\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0435\u0439.\u00a0\u041a\u043b\u044e\u0447\u041a\u043e\u043c\u043f 1\u041a\u043e\u043c\u043f 2\u041a\u043e\u043c\u043f 3\u041a\u043e\u043c\u043f 4\u0447\u0438\u0441\u043b\u043e, \u0441\u0442\u0440\u043e\u043a\u043069 430,12574 974,62291 522,879115 766,058\u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u0445\u0435\u0448\u04304 035,5704 019,2586 848,7456 602,455\u0441\u0442\u0440\u043e\u043a\u0430, \u0447\u0438\u0441\u043b\u043e30,15130,11934,57544,964\u0431\u0435\u0437 \u0441\u0441\u044b\u043b\u043e\u043a \u0432\u043d\u0443\u0442\u0440\u04388,77410,47411,72912,300\u0441\u0432\u043e\u0439 \u0445\u0435\u04486,1434,5925,9086,483record struct4,8663,3544,5864,879\u041c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b, .NET 10\u00a0\u041f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432 14 268\u201323 727 \u0440\u0430\u0437 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043c\u0430\u0448\u0438\u043d\u044b.\u041d\u0430 .NET 8 \u0438 .NET 9 \u0440\u0430\u0437\u0440\u044b\u0432 \u0435\u0449\u0451 \u0431\u043e\u043b\u044c\u0448\u0435:\u00a0\u0420\u0430\u043d\u0442\u0430\u0439\u043c\u041a\u043e\u043c\u043f 1\u041a\u043e\u043c\u043f 2\u041a\u043e\u043c\u043f 3\u041a\u043e\u043c\u043f 4.NET 8205   263,676366   908,497275   283,953309   657,300.NET 9128   643,347178   689,332178   409,297207   162,240.NET 1069   430,12574   974,62291   522,879115   766,058\u041c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u043a\u043b\u044e\u0447 \u00ab\u0447\u0438\u0441\u043b\u043e, \u0441\u0442\u0440\u043e\u043a\u0430\u00bb\u041e\u0442\u0441\u0442\u0430\u0432\u0430\u043d\u0438\u0435 \u043e\u0442 \u043a\u043b\u044e\u0447\u0430-\u0437\u0430\u043f\u0438\u0441\u0438 105 737 \u0440\u0430\u0437 \u043d\u0430 .NET 8 \u0438 56 086 \u043d\u0430 .NET 9. \u041f\u043e\u0438\u0441\u043a \u0443\u0441\u043a\u043e\u0440\u0438\u043b\u0438 \u0432\u0442\u0440\u043e\u0435 \u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u0438 \u043a \u0432\u0435\u0440\u0441\u0438\u0438, \u043d\u043e \u0440\u0430\u0437\u0440\u044b\u0432 \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0432 \u0442\u044b\u0441\u044f\u0447\u0438 \u0440\u0430\u0437.\u041f\u0440\u0438\u0447\u0438\u043d\u0430\u0425\u0435\u0448 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0441\u0447\u0438\u0442\u0430\u0435\u0442 ValueType.GetHashCode. \u0412 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043a \u043c\u0435\u0442\u043e\u0434\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e: \u0431\u0435\u0440\u0451\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u043e\u0435 \u043d\u0435\u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u043e\u043b\u0435 \u0438 \u0435\u0433\u043e \u0445\u0435\u0448.\/\/ Our algorithm for returning the hashcode is a little bit complex.\/\/ We look for the first non-static field and get its hashcode.\/\/ If the type has no non-static fields, we return the hashcode of the type.\u0422\u0430\u043a \u0431\u044b\u0432\u0430\u0435\u0442 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 CanCompareBitsOrUseFastGetHashCode: \u0435\u0441\u043b\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0441\u044b\u043b\u043e\u043a \u0438 \u0432 \u043d\u0435\u0439 \u043d\u0435\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u043b\u044f\u043c\u0438, \u0445\u0435\u0448 \u0441\u0440\u0430\u0437\u0443 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c \u0435\u0451 \u0431\u0430\u0439\u0442\u0430\u043c.\u041f\u043e\u043b\u0435 \u0442\u0438\u043f\u0430 string \u2014 \u0441\u0441\u044b\u043b\u043a\u0430. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442, \u0438 \u0445\u0435\u0448 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u043f\u043e\u043b\u044e. \u041f\u0435\u0440\u0432\u043e\u0435 \u043f\u043e\u043b\u0435 \u0443 \u0432\u0441\u0435\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u043d\u0430\u0431\u043e\u0440\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0435, \u0437\u043d\u0430\u0447\u0438\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432 \u0438 \u0445\u0435\u0448.\u041e\u0442\u0447\u0451\u0442 \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430 \u043d\u0430\u0431\u043e\u0440\u0435 \u0438\u0437 1000 \u043a\u043b\u044e\u0447\u0435\u0439 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:  \u043a\u043b\u044e\u0447                \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0445\u0435\u0448\u0435\u0439   \u0437\u0430\u043d\u044f\u0442\u043e \u0431\u0430\u043a\u0435\u0442\u043e\u0432   \u0441\u0430\u043c\u0430\u044f \u0434\u043b\u0438\u043d\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u043a\u0430   \u0447\u0438\u0441\u043b\u043e, \u0441\u0442\u0440\u043e\u043a\u0430                   1          1 \u0438\u0437 1103                 1000  \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u0445\u0435\u0448\u0430              1          1 \u0438\u0437 1103                 1000  \u0441\u0442\u0440\u043e\u043a\u0430, \u0447\u0438\u0441\u043b\u043e                1000        671 \u0438\u0437 1103                    5  \u0441\u0432\u043e\u0439 \u0445\u0435\u0448                     1000        656 \u0438\u0437 1103                    5  \u0437\u0430\u043f\u0438\u0441\u044c                       1000        669 \u0438\u0437 1103                    5  \u0431\u0435\u0437 \u0441\u0441\u044b\u043b\u043e\u043a                   1000        661 \u0438\u0437 1103                    6\u041e\u0434\u0438\u043d \u0437\u0430\u043d\u044f\u0442\u044b\u0439 \u0431\u0430\u043a\u0435\u0442 \u0438\u0437 1103, \u0438 \u0432 \u043d\u0451\u043c \u0432\u0441\u0435 1000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439. \u041f\u043e\u0438\u0441\u043a \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u0442 \u0438\u0445 \u043f\u043e\u0434\u0440\u044f\u0434, \u043a\u0430\u043a \u0441\u043f\u0438\u0441\u043e\u043a.\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f\u0420\u0435\u0448\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0438\u043d\u043e\u0432\u0430\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0430. \u0423 \u0442\u043e\u0433\u043e \u0436\u0435 \u043a\u043b\u044e\u0447\u0430 \u0441 \u043f\u043e\u043b\u044f\u043c\u0438 \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f 1000 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0445\u0435\u0448\u0435\u0439: \u0445\u0435\u0448 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0435, \u0438 \u043e\u043d \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0432\u043e\u0439.\u0420\u0435\u0448\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u0435\u043b\u043e \u0432 \u0440\u0430\u0437\u043c\u0435\u0440\u0435 \u043d\u0430\u0431\u043e\u0440\u0430. \u041d\u0430 1000 \u043a\u043b\u044e\u0447\u0435\u0439 \u0440\u0430\u0437\u0440\u044b\u0432 \u043c\u0435\u043d\u044c\u0448\u0435, \u043d\u043e \u043e\u043d \u0442\u0430\u043c \u0436\u0435: 12 744 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043f\u0440\u043e\u0442\u0438\u0432 2,792.2. \u0414\u0435\u043b\u043e \u043d\u0435 \u0432 \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0435\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u041f\u0435\u0440\u0432\u043e\u0435, \u043e \u0447\u0451\u043c \u0434\u0443\u043c\u0430\u044e\u0442 \u0432 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438, \u2014 \u0447\u0442\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 Equals(object) \u0438 \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f. \u041f\u0440\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u0431\u044b\u043b\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f, \u0442\u0430\u043c \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432\u044b\u0445\u043e\u0434\u0438\u043b\u0430 \u0432 5 \u0440\u0430\u0437.\u0427\u0442\u043e\u0431\u044b \u043e\u0442\u0434\u0435\u043b\u0438\u0442\u044c \u043e\u0434\u043d\u043e \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e, \u0432 \u0437\u0430\u043c\u0435\u0440\u0435 \u0435\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u044e\u0447: \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0438 \u043d\u0435\u0442, \u0430 GetHashCode \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0431\u0430\u0437\u043e\u0432\u044b\u043c.internal struct EquatableOnly : IEquatable&lt;EquatableOnly&gt;{    internal int A;    internal string B;     public bool Equals(EquatableOnly other) =&gt; A == other.A &amp;&amp; B == other.B;    public override bool Equals(object? other) =&gt; other is EquatableOnly key &amp;&amp; Equals(key);     \/\/ GetHashCode \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d}\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0440\u041a\u043b\u044e\u0447\u041a\u043e\u043c\u043f 1\u041a\u043e\u043c\u043f 2\u041a\u043e\u043c\u043f 3\u041a\u043e\u043c\u043f 4\u0447\u0438\u0441\u043b\u043e, \u0441\u0442\u0440\u043e\u043a\u043069 430,12574 974,62291 522,879115 766,058\u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u0445\u0435\u0448\u04304 035,5704 019,2586 848,7456 602,455record struct4,8663,3544,5864,879\u041c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b, .NET 10\u0421\u0432\u043e\u0451 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0443\u0431\u0438\u0440\u0430\u0435\u0442 \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0443 \u0438 \u0443\u0441\u043a\u043e\u0440\u044f\u0435\u0442 \u043f\u043e\u0438\u0441\u043a \u0432 17,2 \u0440\u0430\u0437\u0430. \u0414\u043e \u043a\u043b\u044e\u0447\u0430-\u0437\u0430\u043f\u0438\u0441\u0438 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0435\u0449\u0451 1198 \u0440\u0430\u0437: \u0437\u0430\u043f\u0438\u0441\u0438 \u0442\u0430\u043a \u0438 \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u0432 \u043e\u0434\u043d\u043e\u043c \u0431\u0430\u043a\u0435\u0442\u0435, \u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u0439.\u041f\u0440\u0438\u0447\u0438\u043d\u0430\u0423\u043f\u0430\u043a\u043e\u0432\u043a\u0430 \u0438 \u0445\u0435\u0448 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c \u043d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u044b. IEquatable \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0442\u043e, \u043a\u0430\u043a \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0434\u0432\u0430 \u043a\u043b\u044e\u0447\u0430. GetHashCode \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0442\u043e, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u044e\u0447\u0435\u0439 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c.\u041f\u0440\u0438 \u043e\u0434\u043d\u043e\u043c \u0445\u0435\u0448\u0435 \u043d\u0430 \u0432\u0435\u0441\u044c \u043d\u0430\u0431\u043e\u0440 \u0432\u0442\u043e\u0440\u043e\u0435 \u043f\u0435\u0440\u0435\u0432\u0435\u0448\u0438\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0435 \u043d\u0430 \u0442\u0440\u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u0430.\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f\u0420\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c IEquatable \u0438 \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0437\u0430\u043a\u0440\u044b\u0442\u043e\u0439. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u0435\u0442 \u043f\u0440\u043e \u043d\u0435\u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u0439 Equals, \u043d\u043e \u043f\u0440\u043e GetHashCode \u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043d\u0435 \u0441\u043a\u0430\u0436\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e: \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0435\u0441\u0442\u044c, \u0438 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0432\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435.3. \u0425\u0435\u0448\u0438 \u0440\u0430\u0437\u043d\u044b\u0435, \u0430 \u043f\u043e\u0438\u0441\u043a \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0439\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u041a\u043b\u044e\u0447 \u0441 \u043f\u043e\u043b\u044f\u043c\u0438 \u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435. \u0425\u0435\u0448 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0435, \u0432\u0441\u0435 1000 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0440\u0430\u0437\u043d\u044b\u0435, \u0437\u0430\u043f\u0438\u0441\u0438 \u0440\u0430\u0437\u043e\u0448\u043b\u0438\u0441\u044c \u043f\u043e 671 \u0431\u0430\u043a\u0435\u0442\u0443:internal struct TextFirst{    internal string B;    internal int A;}\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0440\u041a\u043b\u044e\u0447\u041a\u043e\u043c\u043f 1\u041a\u043e\u043c\u043f 2\u041a\u043e\u043c\u043f 3\u041a\u043e\u043c\u043f 4\u0441\u0442\u0440\u043e\u043a\u0430, \u0447\u0438\u0441\u043b\u043e30,15130,11934,57544,964\u0431\u0435\u0437 \u0441\u0441\u044b\u043b\u043e\u043a \u0432\u043d\u0443\u0442\u0440\u04388,77410,47411,72912,300\u0441\u0432\u043e\u0439 \u0445\u0435\u04486,1434,5925,9086,483record struct4,8663,3544,5864,879\u041c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b, .NET 10\u00a0\u0417\u0430\u043f\u0438\u0441\u0438 \u0440\u0430\u0437\u043b\u043e\u0436\u0435\u043d\u044b \u043f\u043e \u0431\u0430\u043a\u0435\u0442\u0430\u043c, \u0430 \u043f\u043e\u0438\u0441\u043a \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u0432 6,2\u20139,2 \u0440\u0430\u0437\u0430.\u041f\u0440\u0438\u0447\u0438\u043d\u0430\u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442, GetHashCode \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0440\u0451\u0442 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u043e\u043b\u0435. \u041e\u043d \u0443\u0445\u043e\u0434\u0438\u0442 \u0432 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043e\u0434 \u0440\u0430\u043d\u0442\u0430\u0439\u043c\u0430, \u0433\u0434\u0435 \u043f\u043e\u043b\u044f \u0442\u0438\u043f\u0430 \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0437\u0430\u043d\u043e\u0432\u043e, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0439\u0434\u0451\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0435\u0435. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0431\u0445\u043e\u0434 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435. \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 30 \u0438 3,4 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b.\u0423 \u043a\u043b\u044e\u0447\u0430 \u0431\u0435\u0437 \u0441\u0441\u044b\u043b\u043e\u043a \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442, \u0438 \u0445\u0435\u0448 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c \u0431\u0430\u0439\u0442\u0430\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b. \u0412\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u0441\u0432\u043e\u0435\u0433\u043e: 10,474 \u043f\u0440\u043e\u0442\u0438\u0432 4,592.\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f\u0420\u0435\u0448\u0438\u0442\u044c, \u0447\u0442\u043e \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0445\u0432\u0430\u0442\u0438\u0442, \u0440\u0430\u0437 \u0445\u0435\u0448\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0440\u0430\u0437\u043d\u044b\u043c\u0438. \u0420\u0430\u0437\u043d\u044b\u0435 \u0445\u0435\u0448\u0438 \u0443\u0431\u0438\u0440\u0430\u044e\u0442 \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u0432 \u0442\u044b\u0441\u044f\u0447\u0438 \u0440\u0430\u0437, \u043d\u043e \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0438 \u0445\u0435\u0448\u0430 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f.4. \u041a\u0430\u043a \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043b\u044e\u0447-\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0414\u0432\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430. \u041f\u0435\u0440\u0432\u044b\u0439 \u2014 \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u043a\u043b\u044e\u0447 \u0437\u0430\u043f\u0438\u0441\u044c\u044e, \u0442\u043e\u0433\u0434\u0430 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0438 \u0445\u0435\u0448 \u043d\u0430\u043f\u0438\u0448\u0435\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440:internal readonly record struct RecordKey(int A, string B);\u0412\u0442\u043e\u0440\u043e\u0439 \u2014 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c GetHashCode:public override int GetHashCode() =&gt; HashCode.Combine(A, B);\u0427\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u043c\u0435\u0440\u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0441\u043b\u043e\u0432\u0430\u0440\u044f \u0438\u0437 5000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439. \u0422\u0443\u0442 \u043d\u0430\u0431\u043e\u0440 \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u0432 \u043f\u043e\u0438\u0441\u043a\u0435, \u0438 \u0432\u043e\u0442 \u043f\u043e\u0447\u0435\u043c\u0443: \u043a\u043e\u0433\u0434\u0430 \u0445\u0435\u0448 \u0443 \u0432\u0441\u0435\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439, \u043a\u0430\u0436\u0434\u0430\u044f \u043d\u043e\u0432\u0430\u044f \u0432\u0441\u0442\u0430\u0432\u043a\u0430 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c\u0438. \u041d\u0430 10 000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0442\u0430\u043a\u043e\u0439 \u0437\u0430\u043c\u0435\u0440 \u0438\u0434\u0451\u0442 \u043c\u0438\u043d\u0443\u0442\u0430\u043c\u0438.\u041a\u043b\u044e\u0447\u041a\u043e\u043c\u043f 1\u041a\u043e\u043c\u043f 2\u041a\u043e\u043c\u043f 3\u041a\u043e\u043c\u043f 4\u0447\u0438\u0441\u043b\u043e, \u0441\u0442\u0440\u043e\u043a\u0430793 643,66959 232,751 161 838,321 239 249,33\u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u0445\u0435\u0448\u043035 885,3936 388,7466 057,1860 668,67\u0441\u0442\u0440\u043e\u043a\u0430, \u0447\u0438\u0441\u043b\u043e293,53300,52354,86487,71\u0441\u0432\u043e\u0439 \u0445\u0435\u0448152,21140,60205,36242,26record struct127,78119,17171,35193,09\u041c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u044b, .NET 10\u00a0\u041e\u0442 0,79 \u0434\u043e 1,24 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043f\u0440\u043e\u0442\u0438\u0432 \u0441\u0442\u0430 \u0434\u0432\u0430\u0434\u0446\u0430\u0442\u0438 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u043a\u0443\u043d\u0434. \u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043e\u0442 6211 \u0434\u043e 8049 \u0440\u0430\u0437.\u0421 \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0430 \u0442\u0430\u043a\u0430\u044f \u0436\u0435. \u0417\u0430 256 \u043f\u043e\u0438\u0441\u043a\u043e\u0432 \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u0440\u044e \u043d\u0430 10 000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439:\u00a0\u041a\u043b\u044e\u0447\u0412\u044b\u0434\u0435\u043b\u0435\u043d\u043e\u0447\u0438\u0441\u043b\u043e, \u0441\u0442\u0440\u043e\u043a\u0430195 638 375 \u0431\u0430\u0439\u0442\u0441\u0442\u0440\u043e\u043a\u0430, \u0447\u0438\u0441\u043b\u043e47 104 \u0431\u0430\u0439\u0442\u0430\u0431\u0435\u0437 \u0441\u0441\u044b\u043b\u043e\u043a \u0432\u043d\u0443\u0442\u0440\u043818 432 \u0431\u0430\u0439\u0442\u0430\u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0431\u0435\u0437 \u0445\u0435\u0448\u04308 192 \u0431\u0430\u0439\u0442\u0430\u0441\u0432\u043e\u0439 \u0445\u0435\u04480record struct0\u0421\u0442\u043e\u043b\u0431\u0435\u0446 Allocated, .NET 10, \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445\u041f\u0440\u0438\u0447\u0438\u043d\u0430\u0411\u0430\u0437\u043e\u0432\u043e\u0435 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044e \u0438 \u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u044f. \u0423\u043c\u043d\u043e\u0436\u044c\u0442\u0435 \u043d\u0430 10 000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 \u0431\u0430\u043a\u0435\u0442\u0435 \u2014 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 195 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 \u0431\u0430\u0439\u0442 \u043d\u0430 256 \u043f\u043e\u0438\u0441\u043a\u043e\u0432.\u0423 \u043a\u043b\u044e\u0447\u0430 \u0441\u043e \u0441\u0432\u043e\u0438\u043c \u0445\u0435\u0448\u0435\u043c \u0438 \u0441\u0432\u043e\u0438\u043c \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435\u043c \u0432 \u043a\u0443\u0447\u0435 \u043d\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0438\u0447\u0435\u0433\u043e.\u0413\u0434\u0435 \u043b\u0435\u0433\u043a\u043e \u043e\u0448\u0438\u0431\u0438\u0442\u044c\u0441\u044f\u0412\u0437\u044f\u0442\u044c record struct \u0438 \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043e\u043d readonly. \u0418\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 \u043a\u043b\u044e\u0447 \u0432 \u0441\u043b\u043e\u0432\u0430\u0440\u0435 \u043e\u043f\u0430\u0441\u0435\u043d \u0441\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435: \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f.\u0413\u0440\u0430\u043d\u0438\u0446\u044b \u0437\u0430\u043c\u0435\u0440\u043e\u0432\u0412\u0441\u0435 \u0441\u043b\u043e\u0432\u0430\u0440\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0441\u0442\u0440\u043e\u043a, \u0441\u0442\u0440\u043e\u043a\u0438 \u0433\u043e\u0442\u043e\u0432\u044f\u0442\u0441\u044f \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0438 \u0432 \u0437\u0430\u043c\u0435\u0440 \u043d\u0435 \u0432\u0445\u043e\u0434\u044f\u0442. \u0421\u043b\u043e\u0432\u0430\u0440\u044f\u043c \u0437\u0430\u0434\u0430\u043d\u0430 \u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e \u0447\u0438\u0441\u043b\u0443 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043d\u0435 \u043f\u043e\u043f\u0430\u043b\u0438 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442.\u0417\u0430 \u043e\u0434\u0438\u043d \u0432\u044b\u0437\u043e\u0432 \u0437\u0430\u043c\u0435\u0440\u0430 \u043f\u043e\u0438\u0441\u043a\u0430 \u0438\u0434\u0451\u0442 256 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0439, \u043d\u043e\u043c\u0435\u0440\u0430 \u043a\u043b\u044e\u0447\u0435\u0439 \u0432\u0437\u044f\u0442\u044b \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043d\u0430\u0431\u043e\u0440\u0443. \u0412\u0441\u0435 256 \u043e\u0431\u044f\u0437\u0430\u043d\u044b \u043d\u0430\u0439\u0442\u0438\u0441\u044c \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0441\u0432\u0435\u0440\u043a\u0430.\u0427\u0438\u0441\u043b\u043e \u0432 \u043a\u043b\u044e\u0447\u0435 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u0443 \u0432\u0441\u0435\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043d\u0430\u0431\u043e\u0440\u0430: \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0439 \u043a\u043b\u044e\u0447, \u0433\u0434\u0435 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u043e\u043b\u0435 \u2014 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f \u0438\u043b\u0438 \u0442\u0438\u043f. \u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u043e\u043b\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e, \u0432\u0441\u0435 \u0445\u0435\u0448\u0438 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u043d\u044b\u043c\u0438, \u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f \u0438\u0437 \u0442\u0440\u0435\u0442\u044c\u0435\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430.\u0412\u0441\u0435 \u0437\u0430\u043c\u0435\u0440\u044b \u0441\u043d\u044f\u0442\u044b \u043d\u0430 x64 \u043f\u043e\u0434 Windows, \u043d\u0430 .NET 8, 9 \u0438 10.\u041a\u043e\u0434 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438KeyHashProof \u2014 \u0437\u0430\u043c\u0435\u0440\u044b, \u043e\u0442\u0447\u0451\u0442\u044b \u0438 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 \u0441 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u043c\u0430\u0448\u0438\u043d\u0421\u0441\u044b\u043b\u043a\u0438ValueType.GetHashCode: \u0445\u0435\u0448 \u0431\u0435\u0440\u0451\u0442\u0441\u044f \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u043c\u043e\u0436\u043d\u043e \u043b\u0438 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0445\u0435\u0448 \u043f\u043e \u0432\u0441\u0435\u043c \u0431\u0430\u0439\u0442\u0430\u043cDictionary.FindValue, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0438\u0434\u0451\u0442 \u043f\u043e\u0438\u0441\u043a\u041f\u0440\u043e\u0448\u043b\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f: \u0442\u0430 \u0436\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u043d\u043e \u043f\u0440\u043e \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0443HashCode.CombineRecord types\u0412\u0441\u0435\u043c \u0443\u0434\u0430\u0447\u0438 \u0438 \u0434\u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0441\u0442\u0440\u0435\u0447!\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1080782\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-494211","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/494211","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=494211"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/494211\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=494211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=494211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=494211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}