{"id":284814,"date":"2017-04-11T19:35:25","date_gmt":"2017-04-11T15:35:25","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=284814"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=284814","title":{"rendered":"Performance \u044d\u0442\u043e \u043f\u0440\u0430\u0437\u0434\u043d\u0438\u043a"},"content":{"rendered":"<p>\u0412\u0435\u0440\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u0441 JPoint 2017, \u0433\u0434\u0435 \u0441 \u043e\u0433\u0440\u043e\u043c\u043d\u0435\u0439\u0448\u0438\u043c \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435\u043c \u043f\u043e\u043e\u0431\u0449\u0430\u043b\u0441\u044f \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u043c\u0435\u0433\u0430\u043a\u0440\u0443\u0442\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432 \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u0434\u0435\u0442\u044c \u0448\u043b\u044f\u043f\u0443 \u0438 \u043f\u043e\u043a\u043e\u043f\u0430\u0442\u044c\u0441\u044f \u0432 \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f\u0445.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgs.xkcd.com\/comics\/artifacts.png\" alt=\"https:\/\/xkcd.com\/1781\/\"\/><\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<p>JPoint 2017 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u043b\u0441\u044f \u0441 \u043c\u0435\u0433\u0430 \u043f\u043b\u0435\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u0434\u043e\u043a\u043b\u0430\u0434\u0430 \u0410\u043b\u0435\u043a\u0441\u0435\u044f \u0428\u0438\u043f\u0438\u043b\u0451\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043d \u0430\u043d\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043b \u0451\u0449\u0451 \u0432 \u043e\u043a\u0442\u044f\u0431\u0440\u0435 2016 \u043d\u0430 Joker \u2014 \u0442\u043e\u0433\u0434\u0430 \u044f \u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0435\u0433\u043e online \u0438 \u043f\u0440\u043e\u043d\u0438\u043a\u0441\u044f <a href=\"http:\/\/www.habrahabr.net\/thread\/3729\">\u041a\u0440\u0438\u0432\u043e\u0439 \u0438\u043c \u0428<\/a>:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/9ba\/59c\/7f8\/9ba59c7f857142479ca38c1ee18ecd58.jpg\" alt=\"\u041a\u0440\u0438\u0432\u0430\u044f \u0438\u043c. \u0428\"\/><\/p>\n<p>  <\/p>\n<p>\u0418 \u0435\u0441\u043b\u0438 \u0441 <strong>\u0437\u0435\u043b\u0451\u043d\u043e\u0439<\/strong> \u0438 <strong>\u043a\u0440\u0430\u0441\u043d\u043e\u0439<\/strong> \u0437\u043e\u043d\u043e\u0439 <em>\u043a\u0430\u043a-\u0442\u043e<\/em> \u0431\u043e\u043b\u0435\u0435-\u043c\u0435\u043d\u0435\u0435 \u044f\u0441\u043d\u043e-\u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0442\u043e \u0432\u043e\u0442 \u0441 \u0433\u0440\u0430\u043d\u0438\u0446\u0435\u0439 <strong>\u0437\u0435\u043b\u0435\u043d\u043e\u0439-\u0436\u0451\u043b\u0442\u043e\u0439<\/strong> \u043d\u0435 \u0432\u0441\u0451 \u0442\u0430\u043a \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e \u2014 \u0447\u0442\u043e \u044d\u0442\u043e? \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u0440 ?<\/p>\n<p>  <\/p>\n<h2 id=\"systemarraycopy\">System.arraycopy<\/h2>\n<p>  <\/p>\n<p>\u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u044d\u043f\u0438\u0447\u043d\u043e\u0433\u043e <del>\u0441\u0440\u0430\u0447\u0430<\/del> \u0432\u043e\u043f\u0440\u043e\u0441\u0430 \u2014 \u0447\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u2014 \u0440\u0443\u0447\u043d\u043e\u0439 \u0434\u0436\u0435\u0434\u0430\u0439\u0441\u043a\u0438\u0439 \u043c\u0435\u0447<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">for (int i = 0; i &lt; src.length; i++)    target[i] = src[i];<\/code><\/pre>\n<p>  <\/p>\n<p>\u0438\u043b\u0438 \u0440\u0430\u0441\u043e\u0432\u043e \u0432\u0435\u0440\u043d\u044b\u0439 <code>System.arraycopy<\/code>.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0435\u043a\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0438 <strong><a href=\"http:\/\/hg.openjdk.java.net\/jdk8\/jdk8\/hotspot\/file\/87ee5ee27509\/src\/share\/vm\/classfile\/vmSymbols.hpp#l581\">intrinsic<\/a><\/strong> \u0434\u0435\u043b\u0430\u044e\u0442 \u043e\u0431\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0440\u0430\u0432\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u044b\u043c\u0438 \u2014 \u0432\u043e\u043f\u0440\u043e\u0441 \u0432\u043a\u0443\u0441\u043e\u0432\u044b\u0445 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0435\u043d\u0438\u0439. <\/p>\n<p>  <\/p>\n<h2 id=\"collectiontoarray\">collection.toArray()<\/h2>\n<p>  <\/p>\n<p>\u0415\u0441\u0442\u044c \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0442\u0440\u043e\u043a, \u0438 \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432. <\/p>\n<p>  <\/p>\n<p>\u041b\u0443\u0447\u0448\u0435\u0435 (\u0432\u0440\u0430\u0433 \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e) \u0440\u0435\u0448\u0435\u043d\u0438\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">String[] array = collection.toArray(new String[collection.size]);<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"zabud\">\u0417\u0430\u0431\u0443\u0434\u044c!<\/h3>\n<p>  <\/p>\n<p><a href=\"https:\/\/shipilev.net\/blog\/2016\/arrays-wisdom-ancients\/\">Arrays of Wisdom of the Ancients<\/a> \u0443\u0447\u0438\u0442, \u0447\u0442\u043e \u043d\u043e\u0432\u043e\u0435 \u044d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u0430\u0431\u044b\u0442\u043e\u0435 \u0441\u0442\u0430\u0440\u043e\u0435<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">String[] array = collection.toArray(new String[0]);<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"new-arraylist\">new ArrayList<\/h2>\n<p>  <\/p>\n<p>\u0420\u0430\u043d\u044c\u0448\u0435 (\u043a\u043e\u0433\u0434\u0430 \u0434\u0435\u0440\u0435\u0432\u044c\u044f \u0431\u044b\u043b\u0438 \u0432\u044b\u0441\u043e\u043a\u0438\u043c\u0438) \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430 ArrayList \/ HashMap \/ etc \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u043c\u0430\u0441\u0441\u0438\u0432 \u0441 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c ( 10 \u0434\u043b\u044f ArrayList, 0x10 \u0434\u043b\u044f HashMap ). <\/p>\n<p>  <\/p>\n<p>\u0414\u0440\u0443\u0433\u043e\u0435 \u0434\u0435\u043b\u043e, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0437\u043d\u0430\u043b\u0438, \u043a\u0430\u043a\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0432 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e \u2014 \u043e\u043f\u044b\u0442\u043d\u044b\u0435 \u0434\u0436\u0435\u0434\u0430\u0438 \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u0441\u0440\u0430\u0437\u0443 \u0447\u0442\u043e-\u0442\u043e \u0442\u0438\u043f\u0430<\/p>\n<p>  <\/p>\n<pre><code class=\"java\">List&lt;String&gt; strings = new ArrayList&lt;&gt;( values.length );<\/code><\/pre>\n<p>  <\/p>\n<p>\u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u043f\u0438\u0445\u0438\u0432\u0430\u0435\u0442\u0435 \u0441\u0432\u043e\u0438 <code>values<\/code> \u0438 \u0441\u0447\u0430\u0441\u0442\u044c\u0435 \u2014 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0430\u0440\u0430\u0437\u0438\u0442\u043d\u044b\u0445 \u0430\u043b\u043b\u043e\u043a\u0430\u0446\u0438\u0439 \u043e\u0442 10 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043e \u0432\u0430\u0448\u0435\u0439 \u0446\u0435\u043b\u0438. <\/p>\n<p>  <\/p>\n<p>\u041d\u043e \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u0441\u0430\u043c\u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0435\u0449\u0451 \u043d\u0435\u0442 \u2014 \u0441 <strong>null<\/strong> \u0432\u043e\u0437\u0438\u0442\u0441\u044f \u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f, \u043d\u043e \u0437\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 3? <\/p>\n<p>  <\/p>\n<pre><code class=\"java\">List&lt;String&gt; strings = new ArrayList&lt;&gt;( 3 );<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418 \u043f\u043e\u0433\u043d\u0430\u043b\u0438 \u2014 \u043f\u0440\u043e\u0444\u0438\u0442 \u0432 7 \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u043b\u0435\u043d\u043d\u044b\u0445 \u044f\u0447\u0435\u0435\u043a \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0430\u043a\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a ( ~7 * 16 \u0431\u0430\u0439\u0442 \/ \u0441\u043f\u0438\u0441\u043e\u043a ), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a\u043e\u0433\u0434\u0430-\u0442\u043e \u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d.<\/p>\n<p>  <\/p>\n<h3 id=\"zabud-1\">\u0417\u0430\u0431\u0443\u0434\u044c!<\/h3>\n<p>  <\/p>\n<p><a href=\"http:\/\/hg.openjdk.java.net\/jdk8\/jdk8\/jdk\/rev\/0cccdb9a9a4c\">Optimize empty HashMap and ArrayList<\/a> \u043a\u043e\u043c\u043c\u0438\u0442 \u0432 openjdk \u2014 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 ArrayList \/ HashMap, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u0435\u0440\u0436\u0430\u0442 \u043f\u0443\u0441\u0442\u0443\u044e static \u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0443 \u2014 \u0438 \u043f\u0435\u0440\u0432\u043e\u0435 \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u043d\u0430 10 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 (\u0434\u043b\u044f ArrayList, 16 \u0434\u043b\u044f HashMap), \u0442\u043e\u0433\u0434\u0430 \u043a\u0430\u043a <code>new ArrayList( int )<\/code> \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u044d\u043d\u0435\u0440\u0433\u0438\u0447\u043d\u043e \u0438 \u0441\u0440\u0430\u0437\u0443.<\/p>\n<p>  <\/p>\n<h2 id=\"stringsplitregex\">String.split(regex)<\/h2>\n<p>  <\/p>\n<p>\u0427\u0442\u043e \u0437\u043d\u0430\u044e\u0442 \u0434\u0436\u0435\u0434\u0430\u0438 \u043f\u0440\u043e \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f?<br \/>  <img decoding=\"async\" src=\"https:\/\/imgs.xkcd.com\/comics\/regular_expressions.png\" alt=\"https:\/\/xkcd.com\/208\/\"\/><\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c regexp \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u2014 \u0434\u043e\u0440\u043e\u0433\u043e, \u043e\u043f\u044b\u0442\u043d\u044b\u0435 \u043f\u0430\u0434\u0430\u0432\u0430\u043d\u044b \u0434\u0435\u043b\u0430\u044e\u0442 \u0432\u043c\u0435\u0441\u0442\u043e <code>stringValue.split(regexp)<\/code> \u0447\u0442\u043e-\u0442\u043e \u0442\u0438\u043f\u0430<\/p>\n<p>  <\/p>\n<pre><code>private static final Pattern PATTERN = Pattern.compile(regex);  .... String[] strings = PATTERN.split(string);<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0444\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0448\u0430\u0431\u043b\u043e\u043d \u043d\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"http:\/\/risovach.ru\/upload\/2015\/06\/mem\/hitriy-getsbi_85772827_orig_.jpg\" alt=\"\u0417\u0430\u0431\u0443\u0434\u044c!\"\/><\/p>\n<p>  <\/p>\n<h3 id=\"zabud-2\">\u0417\u0430\u0431\u0443\u0434\u044c!<\/h3>\n<p>  <\/p>\n<p><a href=\"http:\/\/hg.openjdk.java.net\/jdk8\/jdk8\/jdk\/rev\/1ff977b938e5\">Lightweight implementation of String.split for simple use case<\/a><\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043e\u0434\u043d\u043e\u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u2014 \u0438\u043c\u0435\u043d\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0442\u0438\u043f\u0430 <code>``` ( _\u043f\u0440\u043e\u0431\u0435\u043b_ ) \u0438\u043b\u0438<\/code>,<code>( _\u0437\u0430\u043f\u044f\u0442\u0430\u044f_ ), \u0430 \u043d\u0435 \u0441\u043f\u0435\u0446. \u0441\u0438\u043c\u0432\u043e\u043b \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u0430<\/code>.&#171;` ( <em>\u0442\u043e\u0447\u043a\u0430<\/em> ) \u2014 \u0442\u043e \u043d\u0438\u043a\u0430\u043a\u043e\u0435 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0434\u0430\u0436\u0435 \u0438 \u0431\u043b\u0438\u0437\u043a\u043e \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f. <\/p>\n<p>  <\/p>\n<h2 id=\"kod-kotoryy-pahnet\">\u041a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0430\u0445\u043d\u0435\u0442<\/h2>\n<p>  <\/p>\n<p>\u042f \u043d\u0435 \u0431\u0443\u0434\u0443 \u0434\u0430\u0436\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043f\u0440\u043e \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f\u0432\u043d\u043e \u043f\u0430\u0445\u043d\u0435\u0442 \u0442\u0438\u043f\u0430<\/p>\n<p>  <\/p>\n<pre><code>return new StringBuilder().append(&quot;value:&quot;).append(value).toString();<\/code><\/pre>\n<p>  <\/p>\n<p>\u043f\u043e\u043b\u044c\u0437\u044b \u043e\u0442 \u043d\u0435\u0433\u043e \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u2014 \u0437\u0430\u0442\u043e \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u043d\u0438\u043a\u0430\u043a\u0430\u044f. <\/p>\n<p>  <\/p>\n<h2 id=\"xx-flagi\">XX-\u0444\u043b\u0430\u0433\u0438<\/h2>\n<p>  <\/p>\n<p>\u041c\u043e\u0436\u043d\u043e \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0430\u043f\u043e\u0442\u043b\u0438\u0432\u043e \u043f\u043e\u0434\u0431\u0438\u0440\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u043a\u0443\u0447\u0438 \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 XX-\u0444\u043b\u0430\u0433\u0438 \u2014 \u043d\u043e \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c, \u043a\u043e\u0433\u0434\u0430 \u0432 \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u043b\u0438\u0442\u043e \u0435\u0449\u0451 1000 \u0438 1 \u043e\u0434\u043d\u0430 \u0431\u0438\u0437\u043d\u0435\u0441 \u0444\u0438\u0447\u0430 \u0432\u0441\u0435 \u044d\u0442\u0438 \u0444\u043b\u0430\u0433\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u043e\u043b\u0435\u0435, \u0447\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043f\u0440\u0438\u043d\u043e\u0441\u0438\u0442\u044c \u0436\u0435\u043b\u0430\u0435\u043c\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0431\u044b\u0441\u0442\u0440\u043e\u0442\u044b. \u0421\u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u043e\u043d\u0438 \u043f\u0440\u043e\u0442\u0443\u0445\u043b\u0438.<\/p>\n<p>  <\/p>\n<h1 id=\"vyvody\">\u0412\u044b\u0432\u043e\u0434\u044b<\/h1>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442 \u0436\u0438\u0432 \u0438 \u043f\u0440\u043e\u0446\u0432\u0435\u0442\u0430\u0435\u0442, \u0430 \u0432\u0430\u0441 \u0440\u0430\u0437 \u0432 \u0441\u0442\u043e-\u0434\u0432\u0435\u0441\u0442\u0438 \u043b\u0435\u0442 \u043f\u0440\u043e\u0441\u044f\u0442 \u0443\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0435\u0440\u0444\u043e\u0440\u043c\u0430\u043d\u0441 (\u0445\u043e\u0442\u044f \u0442\u0430\u043d\u0446\u044b \u0433\u043e\u043b\u044b\u043c \u043d\u0430 \u043f\u044c\u044f\u043d\u044b\u0445 \u0441\u0442\u043e\u043b\u0430\u0445 \u0442\u043e\u0436\u0435 \u043f\u0435\u0440\u0444\u043e\u0440\u043c\u0430\u043d\u0441, \u043d\u043e \u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e \u0434\u0440\u0443\u0433\u043e\u043c ) \u2014 \u0442\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432\u0441\u044f\u043a\u043e\u0433\u043e \u0440\u043e\u0434\u0430 <strong>\u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438<\/strong>, \u0438 \u043d\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u043e, \u0447\u0442\u043e \u0438\u0437 \u0442\u043e\u0439 \u0441\u0430\u043c\u043e\u0439 \u0436\u0451\u043b\u0442\u043e\u0439 \u0437\u043e\u043d\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e \u0438\u0441\u0442\u0435\u0447\u0435\u043d\u0438\u044e \u0441\u0440\u043e\u043a\u0430 \u0433\u043e\u0434\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0430\u0445\u043d\u0443\u0442\u044c, \u043d\u043e \u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u043e\u0442 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u2014 \u0442\u043e\u0440\u043c\u043e\u0437\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"http:\/\/risovach.ru\/upload\/2016\/12\/mem\/vzhuh-mem_132149871_orig_.jpg\"\/><\/p>\n<p>  <\/p>\n<p><strong>\u041d\u0430\u0434\u0435\u0436\u0434\u044b \u043d\u0435\u0442<\/strong>, \u0447\u0442\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0442\u0438\u043f\u0430 PMD, \u0438\u043b\u0438 \u0432\u0430\u0448\u0430 \u043b\u044e\u0431\u0438\u043c\u0430\u044f IDE \u0438\u043c\u0435\u044e\u0442 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 java, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u044c \u0432 PROD ==&gt;<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u0435 \u0440\u0435\u0432\u0438\u0437\u0438\u044e <del>\u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u0438\u0451\u043c\u043e\u0432<\/del> \u0437\u043d\u0430\u043d\u0438\u0439.<\/p>\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\/326242\/\"> https:\/\/habrahabr.ru\/post\/326242\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0435\u0440\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u0441 JPoint 2017, \u0433\u0434\u0435 \u0441 \u043e\u0433\u0440\u043e\u043c\u043d\u0435\u0439\u0448\u0438\u043c \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435\u043c \u043f\u043e\u043e\u0431\u0449\u0430\u043b\u0441\u044f \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u043c\u0435\u0433\u0430\u043a\u0440\u0443\u0442\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432 \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u0434\u0435\u0442\u044c \u0448\u043b\u044f\u043f\u0443 \u0438 \u043f\u043e\u043a\u043e\u043f\u0430\u0442\u044c\u0441\u044f \u0432 \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f\u0445.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgs.xkcd.com\/comics\/artifacts.png\" alt=\"https:\/\/xkcd.com\/1781\/\"\/><\/p>\n<p>  <\/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-284814","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/284814","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=284814"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/284814\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=284814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=284814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=284814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}