{"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\/fr\/blog\/news\/proekt-gentoo-predstavil-sistemu-upravleniya-paketami-portage-3-0","title":{"rendered":"Le projet Gentoo a pr\u00e9sent\u00e9 le syst\u00e8me de gestion de paquets Portage 3.0","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\">Stabilis\u00e9<\/a><\/noindex> la version du syst\u00e8me de gestion des paquets <noindex><a rel=\"nofollow\" href=\"https:\/\/wiki.gentoo.org\/wiki\/Project:Portage\">Portage 3.0<\/a><\/noindex>, utilis\u00e9 dans la distribution <noindex><a rel=\"nofollow\" href=\"https:\/\/www.gentoo.org\/\">Gentoo Linux<\/a><\/noindex>. La branche pr\u00e9sent\u00e9e a tir\u00e9 le bilan d'un long travail de transition vers Python 3 et de l'arr\u00eat du support de Python 2.7. <\/p>\n<p>En plus de l'arr\u00eat du support de Python 2.7, un autre changement important a \u00e9t\u00e9 l'inclusion <noindex><a rel=\"nofollow\" href=\"https:\/\/www.reddit.com\/r\/Gentoo\/comments\/huczqb\/portage_300_released_with_up_to_5060_faster\/\">d'optimisations<\/a><\/noindex>, permettant d'acc\u00e9l\u00e9rer les calculs li\u00e9s \u00e0 la d\u00e9termination des d\u00e9pendances de 50 \u00e0 60%. Il est int\u00e9ressant de noter que certains d\u00e9veloppeurs ont propos\u00e9 de r\u00e9\u00e9crire le code de r\u00e9solution des d\u00e9pendances en C\/C++ ou Go pour en acc\u00e9l\u00e9rer le traitement, mais le probl\u00e8me a pu \u00eatre r\u00e9solu de mani\u00e8re relativement simple.<\/p>\n<p>La profilage du code existant a montr\u00e9 que la majorit\u00e9 du temps lors des calculs \u00e9tait consacr\u00e9e \u00e0 l'appel des fonctions use_reduce et catpkgsplit avec un ensemble d'arguments r\u00e9p\u00e9t\u00e9 (par exemple, la fonction catpkgsplit a \u00e9t\u00e9 appel\u00e9e entre 1 et 5 millions de fois). Pour acc\u00e9l\u00e9rer le processus, il a \u00e9t\u00e9 utilis\u00e9 la mise en cache des r\u00e9sultats de ces fonctions gr\u00e2ce \u00e0 des dictionnaires. La fonction int\u00e9gr\u00e9e lru_cache \u00e9tait optimale pour le stockage en cache, mais elle n'\u00e9tait disponible que dans les versions de Python \u00e0 partir de 3.2. Pour assurer la compatibilit\u00e9 avec les versions ant\u00e9rieures, une \u00e9bauche rempla\u00e7ant lru_cache a \u00e9t\u00e9 ajout\u00e9e, mais la d\u00e9cision d'arr\u00eater le support de Python 2.7 dans Portage 3.0 a grandement simplifi\u00e9 la t\u00e2che et a permis de se passer de cette couche interm\u00e9diaire. <\/p>\n<p>L'utilisation du cache a permis de r\u00e9duire le temps d'ex\u00e9cution de l'op\u00e9ration \u00ab emerge -uDvpU \u2014with-bdeps=y @world \u00bb sur un ordinateur portable ThinkPad X220 de 5 minutes 20 secondes \u00e0 3 minutes 16 secondes (63 %). Les tests sur d'autres syst\u00e8mes ont montr\u00e9 un gain de performance d'au moins 48 %.<\/p>\n<p>Le d\u00e9veloppeur ayant pr\u00e9par\u00e9 la modification a \u00e9galement tent\u00e9 de r\u00e9aliser un prototype du code de r\u00e9solution des d\u00e9pendances en C++ ou Rust, mais la t\u00e2che s'est r\u00e9v\u00e9l\u00e9e trop complexe, car elle n\u00e9cessitait le portage d'un volume consid\u00e9rable de code, et il \u00e9tait douteux que le r\u00e9sultat obtenu justifie les efforts fournis. <\/p>\n<p><noindex><a rel=\"nofollow\" name=\"link\"><\/a><\/noindex><\/p>\n<p>Source : <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\/fr\/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=\"fr_FR\" \/>\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\/fr\/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\udd47Le projet Gentoo a pr\u00e9sent\u00e9 le syst\u00e8me de gestion des paquets Portage 3.0 | ProHoster","description":"Stabilis\u00e9 la version du syst\u00e8me de gestion des paquets","canonical_url":"https:\/\/prohoster.info\/fr\/blog\/news\/proekt-gentoo-predstavil-sistemu-upravleniya-paketami-portage-3-0","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"fr_FR","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\/fr\/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\/fr\/wp-json\/wp\/v2\/posts\/93424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/comments?post=93424"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/posts\/93424\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/media?parent=93424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/categories?post=93424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/fr\/wp-json\/wp\/v2\/tags?post=93424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}