{"id":147,"date":"2022-02-03T11:28:25","date_gmt":"2022-02-03T11:28:25","guid":{"rendered":"https:\/\/liangqi.org\/?p=147"},"modified":"2022-02-03T11:28:57","modified_gmt":"2022-02-03T11:28:57","slug":"java%e4%b8%ad%e6%95%b0%e7%bb%84%e6%93%8d%e4%bd%9c%e7%9a%84%e6%80%a7%e8%83%bd","status":"publish","type":"post","link":"https:\/\/liangqi.org\/?p=147","title":{"rendered":"Java\u4e2d\u6570\u7ec4\u64cd\u4f5c\u7684\u6027\u80fd"},"content":{"rendered":"\n<p>\u5176\u5b9e\u4e0d\u540c\u6570\u636e\u7ed3\u6784\u7684\u6027\u80fd\u5dee\u522b\u8fd8\u662f\u5f88\u660e\u663e\u7684\uff0c\u53ea\u662f\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\u8fd9\u79cd\u5dee\u522b\u4f1a\u88ab\u7f51\u7edc\u7b49\u5404\u79cd\u5f00\u9500\u6240\u63a9\u76d6\u3002\u6240\u4ee5\u8fd9\u91cc\u770b\u5230\u76841000\u500d\u4ee5\u4e0a\u7684\u5dee\u522b\u53ef\u80fd\u5728\u5b9e\u9645\u573a\u666f\u4e2d\u5e76\u4e0d\u90a3\u4e48\u660e\u663e\u3002<\/p>\n\n\n\n<p>\u4e0b\u9762\u5199\u5199\u51fa\u7ed3\u679c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Insertion Order of objects in HashSet :&#91;Geek3, Geek2, Geek1]\nInsertion Order of objects in LinkedHashSet :&#91;Geek2, Geek1, Geek3]\nInsertion Order of objects in TreeSet :&#91;Geek1, Geek2, Geek3]\n<strong>Total time to insert 1000 integer in an array in nanoseconds: 17666\nTotal time to insert 1000 elements in ArrayList in nanoseconds: 584667\nTotal time to insert 1000 elements in LinkedList in nanoseconds: 379958\nTotal time to insert 1000 elements in HashSet in nanoseconds: 4868709\nTotal time to insert 1000 elements in LinkedHashSet nanoseconds: 1821208<\/strong>\nTotal time to insert 1000 elements in TreeSet in nanoseconds: 3323333\nTotal time to Deletion 1000 elements in HashSet in nanoseconds: 3483916\nTotal time to Deletion 1000 elements in LinkedHashSet in nanoseconds: 1961291\nTotal time to Deletion 1000 elements in TreeSet in nanoseconds: 6673459<\/code><\/pre>\n\n\n\n<p>\u8fd0\u884c\u73af\u5883\u65f6m1 CPU\u7684macbook mini\u3002\u53ef\u4ee5\u770b\u5230\u63d2\u51651000\u4e2aint\u5230\u6570\u7ec4\u662f0.017ms, ArrayList\u662f0.584ms, LinkedList\u662f0.379ms\uff0cHashSet\u662f5ms,LinkedHashSet\u662f2ms\u3002\u6700\u597d\u548c\u6700\u5dee\u4e4b\u95f4\u76f8\u5dee500\u500d\u3002<\/p>\n\n\n\n<p>\u4f46\u662f\u5982\u679c\u8981\u5728\u7f51\u7edc\u4f20\u8f93\u8fd9\u4e481000\u4e2ainteger\u5bf9\u8c61\uff0c\u53ef\u80fd\u76f4\u63a5\u5c31\u662f\u51e0\u5341\u6beb\u79d2\u7684\u82b1\u9500\u4e86\uff0c\u5b58\u50a8\u7684\u65f6\u95f4\u6839\u636e\u4e0d\u540c\u4ecb\u8d28\u4e5f\u8981\u51e0\u6beb\u79d2\u4e0d\u7b49\u3002\u800c\u4e14\u901a\u5e38\u5982\u679c\u9700\u8981\u5b58\u50a8\u7684\u8bdd\u80af\u5b9a\u4e5f\u9700\u8981\u7f51\u7edc\u5f00\u9500\uff0c\u672c\u5730\u5b58\u50a8\u7684\u6982\u7387\u5f88\u4f4e\u3002<\/p>\n\n\n\n<p>\u4f46\u662f\u8fd9\u4e9b\u57fa\u7840\u7684\u6027\u80fd\u5f00\u9500\u4e0a\u7684\u5dee\u522b\u5728\u5927\u6570\u636e\u5904\u7406\u7684\u65f6\u5019\u5e94\u8be5\u8fd8\u662f\u80fd\u663e\u73b0\u51fa\u5dee\u522b\u7684\u3002\u6700\u6162\u76845ms 1k\u6570\u636e\uff0c\u5982\u679c\u6570\u91cf\u7ea7\u52301million\u7684\u8bdd\uff0c\u90a3\u4e48\u5c31\u662f5s\uff0c1billion\u7684\u8bdd\u5c31\u662f1\u4e2a\u591a\u5c0f\u65f6\u3002\u5982\u679c\u7528int\u7684\u8bdd\uff0c\u90a3\u5c31\u662f10s\u30021\u4e2a\u591a\u5c0f\u65f6 VS 10s \u8fd8\u662f\u5f88\u53ef\u89c2\u7684\u5dee\u8ddd\u3002\u53ea\u662f\u4e0d\u77e5\u9053\u628a1billion\u7684\u6570\u636eload\u5230\u5185\u5b58\u9700\u8981\u591a\u4e45\ud83d\ude02 <\/p>\n\n\n\n<p>\u5728\u5b9e\u9645\u7684\u9879\u76ee\u4e2d\u5176\u5b9e\u4e5f\u4ece\u6765\u6ca1\u6709\u9047\u5230\u8fc7\u8fd9\u79cd\u5185\u5b58\u8ba1\u7b97\u5f00\u9500\u5bfc\u81f4\u7684\u6027\u80fd\u74f6\u9888\u3002\u5982\u679c\u4ee5\u540e\u4ec0\u4e48\u65f6\u5019\u9047\u5230\u4e86\uff0c\u6211\u518d\u56de\u6765update\u8fd9\u91cc\u3002\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5176\u5b9e\u4e0d\u540c\u6570\u636e\u7ed3\u6784\u7684\u6027\u80fd\u5dee\u522b\u8fd8\u662f\u5f88\u660e\u663e\u7684\uff0c\u53ea\u662f\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\u8fd9\u79cd\u5dee\u522b\u4f1a\u88ab\u7f51\u7edc\u7b49\u5404\u79cd\u5f00\u9500\u6240\u63a9\u76d6\u3002\u6240\u4ee5\u8fd9\u91cc\u770b\u5230\u76841000\u500d\u4ee5\u4e0a\u7684\u5dee\u522b\u53ef\u80fd\u5728\u5b9e\u9645\u573a\u666f\u4e2d\u5e76\u4e0d\u90a3\u4e48\u660e\u663e\u3002 \u4e0b\u9762\u5199\u5199\u51fa\u7ed3\u679c\uff1a \u8fd0\u884c\u73af\u5883\u65f6m1 CPU\u7684macbook mini\u3002\u53ef\u4ee5\u770b\u5230\u63d2\u51651000\u4e2aint\u5230\u6570\u7ec4\u662f0.017ms, ArrayList\u662f0.584ms, LinkedList\u662f0.379ms\uff0cHashSet\u662f5ms,LinkedHashSet\u662f2ms\u3002\u6700\u597d\u548c\u6700\u5dee\u4e4b\u95f4\u76f8\u5dee500\u500d\u3002 \u4f46\u662f\u5982\u679c\u8981\u5728\u7f51\u7edc\u4f20\u8f93\u8fd9\u4e481000\u4e2ainteger\u5bf9\u8c61\uff0c\u53ef\u80fd\u76f4\u63a5\u5c31\u662f\u51e0\u5341\u6beb\u79d2\u7684\u82b1\u9500\u4e86\uff0c\u5b58\u50a8\u7684\u65f6\u95f4\u6839\u636e\u4e0d\u540c\u4ecb\u8d28\u4e5f\u8981\u51e0\u6beb\u79d2\u4e0d\u7b49\u3002\u800c\u4e14\u901a\u5e38\u5982\u679c\u9700\u8981\u5b58\u50a8\u7684\u8bdd\u80af\u5b9a\u4e5f\u9700\u8981\u7f51\u7edc\u5f00\u9500\uff0c\u672c\u5730\u5b58\u50a8\u7684\u6982\u7387\u5f88\u4f4e\u3002 \u4f46\u662f\u8fd9\u4e9b\u57fa\u7840\u7684\u6027\u80fd\u5f00\u9500\u4e0a\u7684\u5dee\u522b\u5728\u5927\u6570\u636e\u5904\u7406\u7684\u65f6\u5019\u5e94\u8be5\u8fd8\u662f\u80fd\u663e\u73b0\u51fa\u5dee\u522b\u7684\u3002\u6700\u6162\u76845ms 1k\u6570\u636e\uff0c\u5982\u679c\u6570\u91cf\u7ea7\u52301million\u7684\u8bdd\uff0c\u90a3\u4e48\u5c31\u662f5s\uff0c1billion\u7684\u8bdd\u5c31\u662f1\u4e2a\u591a\u5c0f\u65f6\u3002\u5982\u679c\u7528int\u7684\u8bdd\uff0c\u90a3\u5c31\u662f10s\u30021\u4e2a\u591a\u5c0f\u65f6 VS 10s \u8fd8\u662f\u5f88\u53ef\u89c2\u7684\u5dee\u8ddd\u3002\u53ea\u662f\u4e0d\u77e5\u9053\u628a1billion\u7684\u6570\u636eload\u5230\u5185\u5b58\u9700\u8981\u591a\u4e45\ud83d\ude02 \u5728\u5b9e\u9645\u7684\u9879\u76ee\u4e2d\u5176\u5b9e\u4e5f\u4ece\u6765\u6ca1\u6709\u9047\u5230\u8fc7\u8fd9\u79cd\u5185\u5b58\u8ba1\u7b97\u5f00\u9500\u5bfc\u81f4\u7684\u6027\u80fd\u74f6\u9888\u3002\u5982\u679c\u4ee5\u540e\u4ec0\u4e48\u65f6\u5019\u9047\u5230\u4e86\uff0c\u6211\u518d\u56de\u6765update\u8fd9\u91cc\u3002\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,17],"tags":[],"class_list":["post-147","post","type-post","status-publish","format-standard","hentry","category-16","category-17"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Java\u4e2d\u6570\u7ec4\u64cd\u4f5c\u7684\u6027\u80fd - Liangqi\u2018s Technical Journey<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/liangqi.org\/?p=147\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java\u4e2d\u6570\u7ec4\u64cd\u4f5c\u7684\u6027\u80fd - Liangqi\u2018s Technical Journey\" \/>\n<meta property=\"og:description\" content=\"\u5176\u5b9e\u4e0d\u540c\u6570\u636e\u7ed3\u6784\u7684\u6027\u80fd\u5dee\u522b\u8fd8\u662f\u5f88\u660e\u663e\u7684\uff0c\u53ea\u662f\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\u8fd9\u79cd\u5dee\u522b\u4f1a\u88ab\u7f51\u7edc\u7b49\u5404\u79cd\u5f00\u9500\u6240\u63a9\u76d6\u3002\u6240\u4ee5\u8fd9\u91cc\u770b\u5230\u76841000\u500d\u4ee5\u4e0a\u7684\u5dee\u522b\u53ef\u80fd\u5728\u5b9e\u9645\u573a\u666f\u4e2d\u5e76\u4e0d\u90a3\u4e48\u660e\u663e\u3002 \u4e0b\u9762\u5199\u5199\u51fa\u7ed3\u679c\uff1a \u8fd0\u884c\u73af\u5883\u65f6m1 CPU\u7684macbook mini\u3002\u53ef\u4ee5\u770b\u5230\u63d2\u51651000\u4e2aint\u5230\u6570\u7ec4\u662f0.017ms, ArrayList\u662f0.584ms, LinkedList\u662f0.379ms\uff0cHashSet\u662f5ms,LinkedHashSet\u662f2ms\u3002\u6700\u597d\u548c\u6700\u5dee\u4e4b\u95f4\u76f8\u5dee500\u500d\u3002 \u4f46\u662f\u5982\u679c\u8981\u5728\u7f51\u7edc\u4f20\u8f93\u8fd9\u4e481000\u4e2ainteger\u5bf9\u8c61\uff0c\u53ef\u80fd\u76f4\u63a5\u5c31\u662f\u51e0\u5341\u6beb\u79d2\u7684\u82b1\u9500\u4e86\uff0c\u5b58\u50a8\u7684\u65f6\u95f4\u6839\u636e\u4e0d\u540c\u4ecb\u8d28\u4e5f\u8981\u51e0\u6beb\u79d2\u4e0d\u7b49\u3002\u800c\u4e14\u901a\u5e38\u5982\u679c\u9700\u8981\u5b58\u50a8\u7684\u8bdd\u80af\u5b9a\u4e5f\u9700\u8981\u7f51\u7edc\u5f00\u9500\uff0c\u672c\u5730\u5b58\u50a8\u7684\u6982\u7387\u5f88\u4f4e\u3002 \u4f46\u662f\u8fd9\u4e9b\u57fa\u7840\u7684\u6027\u80fd\u5f00\u9500\u4e0a\u7684\u5dee\u522b\u5728\u5927\u6570\u636e\u5904\u7406\u7684\u65f6\u5019\u5e94\u8be5\u8fd8\u662f\u80fd\u663e\u73b0\u51fa\u5dee\u522b\u7684\u3002\u6700\u6162\u76845ms 1k\u6570\u636e\uff0c\u5982\u679c\u6570\u91cf\u7ea7\u52301million\u7684\u8bdd\uff0c\u90a3\u4e48\u5c31\u662f5s\uff0c1billion\u7684\u8bdd\u5c31\u662f1\u4e2a\u591a\u5c0f\u65f6\u3002\u5982\u679c\u7528int\u7684\u8bdd\uff0c\u90a3\u5c31\u662f10s\u30021\u4e2a\u591a\u5c0f\u65f6 VS 10s \u8fd8\u662f\u5f88\u53ef\u89c2\u7684\u5dee\u8ddd\u3002\u53ea\u662f\u4e0d\u77e5\u9053\u628a1billion\u7684\u6570\u636eload\u5230\u5185\u5b58\u9700\u8981\u591a\u4e45\ud83d\ude02 \u5728\u5b9e\u9645\u7684\u9879\u76ee\u4e2d\u5176\u5b9e\u4e5f\u4ece\u6765\u6ca1\u6709\u9047\u5230\u8fc7\u8fd9\u79cd\u5185\u5b58\u8ba1\u7b97\u5f00\u9500\u5bfc\u81f4\u7684\u6027\u80fd\u74f6\u9888\u3002\u5982\u679c\u4ee5\u540e\u4ec0\u4e48\u65f6\u5019\u9047\u5230\u4e86\uff0c\u6211\u518d\u56de\u6765update\u8fd9\u91cc\u3002\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/liangqi.org\/?p=147\" \/>\n<meta property=\"og:site_name\" content=\"Liangqi\u2018s Technical Journey\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-03T11:28:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-03T11:28:57+00:00\" \/>\n<meta name=\"author\" content=\"liangqi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"liangqi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/liangqi.org\/?p=147#article\",\"isPartOf\":{\"@id\":\"https:\/\/liangqi.org\/?p=147\"},\"author\":{\"name\":\"liangqi\",\"@id\":\"https:\/\/liangqi.org\/#\/schema\/person\/105c89d9b783fda67b62e3ce113d6cd3\"},\"headline\":\"Java\u4e2d\u6570\u7ec4\u64cd\u4f5c\u7684\u6027\u80fd\",\"datePublished\":\"2022-02-03T11:28:25+00:00\",\"dateModified\":\"2022-02-03T11:28:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/liangqi.org\/?p=147\"},\"wordCount\":28,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/liangqi.org\/#\/schema\/person\/105c89d9b783fda67b62e3ce113d6cd3\"},\"articleSection\":[\"\u6280\u672f\",\"\u7b97\u6cd5\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/liangqi.org\/?p=147#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/liangqi.org\/?p=147\",\"url\":\"https:\/\/liangqi.org\/?p=147\",\"name\":\"Java\u4e2d\u6570\u7ec4\u64cd\u4f5c\u7684\u6027\u80fd - Liangqi\u2018s Technical Journey\",\"isPartOf\":{\"@id\":\"https:\/\/liangqi.org\/#website\"},\"datePublished\":\"2022-02-03T11:28:25+00:00\",\"dateModified\":\"2022-02-03T11:28:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/liangqi.org\/?p=147#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/liangqi.org\/?p=147\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/liangqi.org\/?p=147#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/liangqi.org\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\u4e2d\u6570\u7ec4\u64cd\u4f5c\u7684\u6027\u80fd\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/liangqi.org\/#website\",\"url\":\"https:\/\/liangqi.org\/\",\"name\":\"Liangqi\u2018s Technical Journey\",\"description\":\"Chasing Excellence; Enjoy life.\",\"publisher\":{\"@id\":\"https:\/\/liangqi.org\/#\/schema\/person\/105c89d9b783fda67b62e3ce113d6cd3\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/liangqi.org\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/liangqi.org\/#\/schema\/person\/105c89d9b783fda67b62e3ce113d6cd3\",\"name\":\"liangqi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/liangqi.org\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/liangqi.org\/wp-content\/uploads\/2022\/01\/P1100089-3-scaled.jpg\",\"contentUrl\":\"https:\/\/liangqi.org\/wp-content\/uploads\/2022\/01\/P1100089-3-scaled.jpg\",\"width\":2560,\"height\":1920,\"caption\":\"liangqi\"},\"logo\":{\"@id\":\"https:\/\/liangqi.org\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/liangqi.org\"],\"url\":\"https:\/\/liangqi.org\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Java\u4e2d\u6570\u7ec4\u64cd\u4f5c\u7684\u6027\u80fd - Liangqi\u2018s Technical Journey","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/liangqi.org\/?p=147","og_locale":"en_US","og_type":"article","og_title":"Java\u4e2d\u6570\u7ec4\u64cd\u4f5c\u7684\u6027\u80fd - Liangqi\u2018s Technical Journey","og_description":"\u5176\u5b9e\u4e0d\u540c\u6570\u636e\u7ed3\u6784\u7684\u6027\u80fd\u5dee\u522b\u8fd8\u662f\u5f88\u660e\u663e\u7684\uff0c\u53ea\u662f\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\u8fd9\u79cd\u5dee\u522b\u4f1a\u88ab\u7f51\u7edc\u7b49\u5404\u79cd\u5f00\u9500\u6240\u63a9\u76d6\u3002\u6240\u4ee5\u8fd9\u91cc\u770b\u5230\u76841000\u500d\u4ee5\u4e0a\u7684\u5dee\u522b\u53ef\u80fd\u5728\u5b9e\u9645\u573a\u666f\u4e2d\u5e76\u4e0d\u90a3\u4e48\u660e\u663e\u3002 \u4e0b\u9762\u5199\u5199\u51fa\u7ed3\u679c\uff1a \u8fd0\u884c\u73af\u5883\u65f6m1 CPU\u7684macbook mini\u3002\u53ef\u4ee5\u770b\u5230\u63d2\u51651000\u4e2aint\u5230\u6570\u7ec4\u662f0.017ms, ArrayList\u662f0.584ms, LinkedList\u662f0.379ms\uff0cHashSet\u662f5ms,LinkedHashSet\u662f2ms\u3002\u6700\u597d\u548c\u6700\u5dee\u4e4b\u95f4\u76f8\u5dee500\u500d\u3002 \u4f46\u662f\u5982\u679c\u8981\u5728\u7f51\u7edc\u4f20\u8f93\u8fd9\u4e481000\u4e2ainteger\u5bf9\u8c61\uff0c\u53ef\u80fd\u76f4\u63a5\u5c31\u662f\u51e0\u5341\u6beb\u79d2\u7684\u82b1\u9500\u4e86\uff0c\u5b58\u50a8\u7684\u65f6\u95f4\u6839\u636e\u4e0d\u540c\u4ecb\u8d28\u4e5f\u8981\u51e0\u6beb\u79d2\u4e0d\u7b49\u3002\u800c\u4e14\u901a\u5e38\u5982\u679c\u9700\u8981\u5b58\u50a8\u7684\u8bdd\u80af\u5b9a\u4e5f\u9700\u8981\u7f51\u7edc\u5f00\u9500\uff0c\u672c\u5730\u5b58\u50a8\u7684\u6982\u7387\u5f88\u4f4e\u3002 \u4f46\u662f\u8fd9\u4e9b\u57fa\u7840\u7684\u6027\u80fd\u5f00\u9500\u4e0a\u7684\u5dee\u522b\u5728\u5927\u6570\u636e\u5904\u7406\u7684\u65f6\u5019\u5e94\u8be5\u8fd8\u662f\u80fd\u663e\u73b0\u51fa\u5dee\u522b\u7684\u3002\u6700\u6162\u76845ms 1k\u6570\u636e\uff0c\u5982\u679c\u6570\u91cf\u7ea7\u52301million\u7684\u8bdd\uff0c\u90a3\u4e48\u5c31\u662f5s\uff0c1billion\u7684\u8bdd\u5c31\u662f1\u4e2a\u591a\u5c0f\u65f6\u3002\u5982\u679c\u7528int\u7684\u8bdd\uff0c\u90a3\u5c31\u662f10s\u30021\u4e2a\u591a\u5c0f\u65f6 VS 10s \u8fd8\u662f\u5f88\u53ef\u89c2\u7684\u5dee\u8ddd\u3002\u53ea\u662f\u4e0d\u77e5\u9053\u628a1billion\u7684\u6570\u636eload\u5230\u5185\u5b58\u9700\u8981\u591a\u4e45\ud83d\ude02 \u5728\u5b9e\u9645\u7684\u9879\u76ee\u4e2d\u5176\u5b9e\u4e5f\u4ece\u6765\u6ca1\u6709\u9047\u5230\u8fc7\u8fd9\u79cd\u5185\u5b58\u8ba1\u7b97\u5f00\u9500\u5bfc\u81f4\u7684\u6027\u80fd\u74f6\u9888\u3002\u5982\u679c\u4ee5\u540e\u4ec0\u4e48\u65f6\u5019\u9047\u5230\u4e86\uff0c\u6211\u518d\u56de\u6765update\u8fd9\u91cc\u3002\u3002","og_url":"https:\/\/liangqi.org\/?p=147","og_site_name":"Liangqi\u2018s Technical Journey","article_published_time":"2022-02-03T11:28:25+00:00","article_modified_time":"2022-02-03T11:28:57+00:00","author":"liangqi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"liangqi","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/liangqi.org\/?p=147#article","isPartOf":{"@id":"https:\/\/liangqi.org\/?p=147"},"author":{"name":"liangqi","@id":"https:\/\/liangqi.org\/#\/schema\/person\/105c89d9b783fda67b62e3ce113d6cd3"},"headline":"Java\u4e2d\u6570\u7ec4\u64cd\u4f5c\u7684\u6027\u80fd","datePublished":"2022-02-03T11:28:25+00:00","dateModified":"2022-02-03T11:28:57+00:00","mainEntityOfPage":{"@id":"https:\/\/liangqi.org\/?p=147"},"wordCount":28,"commentCount":0,"publisher":{"@id":"https:\/\/liangqi.org\/#\/schema\/person\/105c89d9b783fda67b62e3ce113d6cd3"},"articleSection":["\u6280\u672f","\u7b97\u6cd5"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/liangqi.org\/?p=147#respond"]}]},{"@type":"WebPage","@id":"https:\/\/liangqi.org\/?p=147","url":"https:\/\/liangqi.org\/?p=147","name":"Java\u4e2d\u6570\u7ec4\u64cd\u4f5c\u7684\u6027\u80fd - Liangqi\u2018s Technical Journey","isPartOf":{"@id":"https:\/\/liangqi.org\/#website"},"datePublished":"2022-02-03T11:28:25+00:00","dateModified":"2022-02-03T11:28:57+00:00","breadcrumb":{"@id":"https:\/\/liangqi.org\/?p=147#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/liangqi.org\/?p=147"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/liangqi.org\/?p=147#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/liangqi.org\/"},{"@type":"ListItem","position":2,"name":"Java\u4e2d\u6570\u7ec4\u64cd\u4f5c\u7684\u6027\u80fd"}]},{"@type":"WebSite","@id":"https:\/\/liangqi.org\/#website","url":"https:\/\/liangqi.org\/","name":"Liangqi\u2018s Technical Journey","description":"Chasing Excellence; Enjoy life.","publisher":{"@id":"https:\/\/liangqi.org\/#\/schema\/person\/105c89d9b783fda67b62e3ce113d6cd3"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/liangqi.org\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/liangqi.org\/#\/schema\/person\/105c89d9b783fda67b62e3ce113d6cd3","name":"liangqi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/liangqi.org\/#\/schema\/person\/image\/","url":"https:\/\/liangqi.org\/wp-content\/uploads\/2022\/01\/P1100089-3-scaled.jpg","contentUrl":"https:\/\/liangqi.org\/wp-content\/uploads\/2022\/01\/P1100089-3-scaled.jpg","width":2560,"height":1920,"caption":"liangqi"},"logo":{"@id":"https:\/\/liangqi.org\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/liangqi.org"],"url":"https:\/\/liangqi.org\/?author=1"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/liangqi.org\/index.php?rest_route=\/wp\/v2\/posts\/147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liangqi.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/liangqi.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/liangqi.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/liangqi.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=147"}],"version-history":[{"count":2,"href":"https:\/\/liangqi.org\/index.php?rest_route=\/wp\/v2\/posts\/147\/revisions"}],"predecessor-version":[{"id":149,"href":"https:\/\/liangqi.org\/index.php?rest_route=\/wp\/v2\/posts\/147\/revisions\/149"}],"wp:attachment":[{"href":"https:\/\/liangqi.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liangqi.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/liangqi.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}