{"id":93424,"date":"2020-09-07T07:42:06","date_gmt":"2020-09-07T05:42:06","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/proekt-gentoo-predstavil-sistemu-upravleniya-paketami-portage-3-0"},"modified":"2020-09-07T07:42:06","modified_gmt":"2020-09-07T05:42:06","slug":"proekt-gentoo-predstavil-sistemu-upravleniya-paketami-portage-3-0","status":"publish","type":"post","link":"https:\/\/prohoster.info\/hu\/blog\/news\/proekt-gentoo-predstavil-sistemu-upravleniya-paketami-portage-3-0","title":{"rendered":"A Gentoo projekt bemutatta a Portage 3.0 csomagkezel\u0151 rendszert","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><noindex><a rel=\"nofollow\" href=\"https:\/\/www.gentoo.org\/news\/2020\/09\/05\/portage-3-stablized.html\">Stabiliz\u00e1lt<\/a><\/noindex> a csomagkezel\u0151 rendszer kiad\u00e1sa <noindex><a rel=\"nofollow\" href=\"https:\/\/wiki.gentoo.org\/wiki\/Project:Portage\">Portage 3.0<\/a><\/noindex>, amely a disztrib\u00faci\u00f3ban alkalmaz\u00e1sra ker\u00fclt <noindex><a rel=\"nofollow\" href=\"https:\/\/www.gentoo.org\/\">Gentoo Linux<\/a><\/noindex>. A bemutatott \u00e1g \u00f6sszegzi a Python 3-ra val\u00f3 \u00e1tt\u00e9r\u00e9s hossz\u00fa munk\u00e1j\u00e1t, \u00e9s megsz\u00fcnteti a Python 2.7 t\u00e1mogat\u00e1s\u00e1t. <\/p>\n<p>A Python 2.7 t\u00e1mogat\u00e1s\u00e1nak megsz\u00fcntet\u00e9se mellett egy m\u00e1sik fontos v\u00e1ltoz\u00e1s a k\u00f6vetkez\u0151 optimaliz\u00e1ci\u00f3k <noindex><a rel=\"nofollow\" href=\"https:\/\/www.reddit.com\/r\/Gentoo\/comments\/huczqb\/portage_300_released_with_up_to_5060_faster\/\">bevezet\u00e9se<\/a><\/noindex>, amelyek 50-60%-kal gyorsabb\u00e1 tett\u00e9k a f\u00fcgg\u0151s\u00e9gek meghat\u00e1roz\u00e1s\u00e1val kapcsolatos sz\u00e1m\u00edt\u00e1sokat. \u00c9rdekes, hogy egyes fejleszt\u0151k azt javasolt\u00e1k, hogy a f\u00fcgg\u0151s\u00e9gfelold\u00f3 k\u00f3dot C\/C++ vagy Go nyelven \u00edrj\u00e1k \u00e1t a teljes\u00edtm\u00e9ny jav\u00edt\u00e1sa \u00e9rdek\u00e9ben, de a probl\u00e9m\u00e1t viszonylag egyszer\u0171en siker\u00fclt megoldani.<\/p>\n<p>A megl\u00e9v\u0151 k\u00f3d profiloz\u00e1sa azt mutatta, hogy a sz\u00e1m\u00edt\u00e1sok sor\u00e1n a legnagyobb id\u0151t a use_reduce \u00e9s catpkgsplit f\u00fcggv\u00e9nyek h\u00edv\u00e1sa t\u00f6lti el, ism\u00e9tl\u0151d\u0151 argumentumk\u00e9szlettel (p\u00e9ld\u00e1ul a catpkgsplit f\u00fcggv\u00e9nyt 1-5 milli\u00f3szor h\u00edvt\u00e1k meg). A gyors\u00edt\u00e1s \u00e9rdek\u00e9ben a funkci\u00f3k eredm\u00e9nyeinek caching-j\u00e9t alkalmazt\u00e1k sz\u00f3t\u00e1rak haszn\u00e1lat\u00e1val. Az lru_cache be\u00e9p\u00edtett funkci\u00f3 volt a legoptim\u00e1lisabb a cache t\u00e1rol\u00e1s\u00e1hoz, de ez csak a Python 3.2 verzi\u00f3t\u00f3l volt el\u00e9rhet\u0151. A kor\u00e1bbi verzi\u00f3k kompatibilit\u00e1sa \u00e9rdek\u00e9ben egy helyettes\u00edt\u0151 ker\u00fclt hozz\u00e1ad\u00e1sra, amely helyettes\u00edtette az lru_cache-t, de a Python 2.7 Portage 3.0-ban val\u00f3 t\u00e1mogat\u00e1s\u00e1nak megsz\u00fcntet\u00e9se jelent\u0151sen leegyszer\u0171s\u00edtette a feladatot, lehet\u0151v\u00e9 t\u00e9ve a r\u00e9teg n\u00e9lk\u00fcli megold\u00e1st. <\/p>\n<p>A gyors\u00edt\u00f3t\u00e1r haszn\u00e1lata lehet\u0151v\u00e9 tette az &#171;emerge -uDvpU &#8212;with-bdeps=y @world&#187; m\u0171velet v\u00e9grehajt\u00e1si idej\u00e9nek cs\u00f6kkent\u00e9s\u00e9t a ThinkPad X220 laptopon 5 perc 20 m\u00e1sodpercr\u0151l 3 perc 16 m\u00e1sodpercre (63%). M\u00e1s rendszereken v\u00e9gzett tesztek legal\u00e1bb 48%-os teljes\u00edtm\u00e9nyn\u00f6veked\u00e9st mutattak.<\/p>\n<p>A v\u00e1ltoztat\u00e1st el\u0151k\u00e9sz\u00edt\u0151 fejleszt\u0151 egy protot\u00edpus k\u00f3dot is pr\u00f3b\u00e1lt megval\u00f3s\u00edtani a f\u00fcgg\u0151s\u00e9gfelold\u00e1sra C++ vagy Rust nyelven, de a feladat t\u00fal bonyolultnak bizonyult, mivel nagy mennyis\u00e9g\u0171 k\u00f3d \u00e1tkonvert\u00e1l\u00e1s\u00e1t ig\u00e9nyelte, \u00e9s k\u00e9ts\u00e9ges volt, hogy az eredm\u00e9ny meg\u00e9rte volna a r\u00e1ford\u00edtott id\u0151t \u00e9s energi\u00e1t. <\/p>\n<p><noindex><a rel=\"nofollow\" name=\"link\"><\/a><\/noindex><\/p>\n<p>Forr\u00e1s: <a \ncontent=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=53668\">opennet.ru<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0421\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u0432\u0430\u043d \u0432\u044b\u043f\u0443\u0441\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043a\u0435\u0442\u0430\u043c\u0438 Portage 3.0, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0439 \u0432 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0435 Gentoo Linux. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0432\u0435\u0442\u043a\u0430 \u043f\u043e\u0434\u0432\u0435\u043b\u0430 \u0438\u0442\u043e\u0433 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0443 \u043d\u0430 Python 3 \u0438 \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u044e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 Python 2.7. \u041a\u0440\u043e\u043c\u0435 \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 Python 2.7, \u0434\u0440\u0443\u0433\u0438\u043c \u0432\u0430\u0436\u043d\u044b\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c \u0441\u0442\u0430\u043b\u043e \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0439, \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0432\u0448\u0438\u0445 \u043d\u0430 50-60% \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439. \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0447\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u043b\u0438 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-93424","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0421\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u0432\u0430\u043d \u0432\u044b\u043f\u0443\u0441\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043a\u0435\u0442\u0430\u043c\u0438\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/hu\/blog\/news\/proekt-gentoo-predstavil-sistemu-upravleniya-paketami-portage-3-0\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"hu_HU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u041f\u0440\u043e\u0435\u043a\u0442 Gentoo \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043a\u0435\u0442\u0430\u043c\u0438 Portage 3.0 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0421\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u0432\u0430\u043d \u0432\u044b\u043f\u0443\u0441\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043a\u0435\u0442\u0430\u043c\u0438\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/hu\/blog\/news\/proekt-gentoo-predstavil-sistemu-upravleniya-paketami-portage-3-0\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-09-07T05:42:06+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-09-07T05:42:06+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47A Gentoo projekt bemutatta a Portage 3.0 csomagkezel\u0151 rendszert | ProHoster","description":"Stabiliz\u00e1lt a csomagkezel\u0151 rendszer kiad\u00e1sa","canonical_url":"https:\/\/prohoster.info\/hu\/blog\/news\/proekt-gentoo-predstavil-sistemu-upravleniya-paketami-portage-3-0","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"hu_HU","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u041f\u0440\u043e\u0435\u043a\u0442 Gentoo \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043a\u0435\u0442\u0430\u043c\u0438 Portage 3.0 | ProHoster","og:description":"\u0421\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u0432\u0430\u043d \u0432\u044b\u043f\u0443\u0441\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043a\u0435\u0442\u0430\u043c\u0438","og:url":"https:\/\/prohoster.info\/hu\/blog\/news\/proekt-gentoo-predstavil-sistemu-upravleniya-paketami-portage-3-0","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-09-07T05:42:06+00:00","article:modified_time":"2020-09-07T05:42:06+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"93424","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 11:48:27","updated":"2022-10-09 13:26:09","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/93424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/comments?post=93424"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/93424\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media?parent=93424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/categories?post=93424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/tags?post=93424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}