{"id":10181,"date":"2023-01-04T10:11:53","date_gmt":"2023-01-04T09:11:53","guid":{"rendered":"https:\/\/monodes.com\/predaelli\/?p=10181"},"modified":"2023-01-04T10:11:54","modified_gmt":"2023-01-04T09:11:54","slug":"9-python-built-in-decorators-that-optimize-your-code-significantly-by-yang-zhou-techtofreedom-jan-2023-medium","status":"publish","type":"post","link":"https:\/\/monodes.com\/predaelli\/2023\/01\/04\/9-python-built-in-decorators-that-optimize-your-code-significantly-by-yang-zhou-techtofreedom-jan-2023-medium\/","title":{"rendered":"9 Python Built-In Decorators That Optimize Your Code Significantly | by Yang Zhou | TechToFreedom | Jan, 2023 | Medium"},"content":{"rendered":"<blockquote><p>Do more by less: leverage the power of decorators<\/p><\/blockquote>\n<p>Source: <em><a href=\"https:\/\/medium.com\/techtofreedom\/9-python-built-in-decorators-that-optimize-your-code-significantly-bc3f661e9017\">9 Python Built-In Decorators That Optimize Your Code Significantly | by Yang Zhou | TechToFreedom | Jan, 2023 | Medium.<\/a><\/em><!--more--><!--nextpage--><\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">Do more by less: leverage the power of decorators Source: 9 Python Built-In Decorators That Optimize Your Code Significantly | by Yang Zhou | TechToFreedom | Jan, 2023 | Medium.<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/monodes.com\/predaelli\/2023\/01\/04\/9-python-built-in-decorators-that-optimize-your-code-significantly-by-yang-zhou-techtofreedom-jan-2023-medium\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[72,113],"tags":[],"class_list":["post-10181","post","type-post","status-publish","format-standard","hentry","category-documentations","category-python"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6daft-2Ed","jetpack-related-posts":[{"id":10271,"url":"https:\/\/monodes.com\/predaelli\/2023\/02\/27\/10271\/","url_meta":{"origin":10181,"position":0},"title":"12 Python Decorators to Take\u2026","author":"Paolo Redaelli","date":"2023-02-27","format":"link","excerpt":"12 Python Decorators to Take Your Code to the Next Level","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10691,"url":"https:\/\/monodes.com\/predaelli\/2023\/08\/13\/noob-or-just-oldish\/","url_meta":{"origin":10181,"position":1},"title":"Noob or &#8220;just&#8221; oldish?","author":"Paolo Redaelli","date":"2023-08-13","format":false,"excerpt":"Young Jedi Anmol Tomar, your pythoninc knowledge lacks historical viewpoint. List Comprehensions were the Python Enhancement Proposals( PEP) 202. In fact Anmol Tomar wrote on medium.com \"9 Python Mistakes That Reveal You\u2019re a Nooby! Move away from noob status!\". Too bad he want to be read only by people in\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/monodes.com\/predaelli\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9066,"url":"https:\/\/monodes.com\/predaelli\/2022\/01\/14\/getting-started-with-cython-how-to-perform-1-7-billion-calculations-per-second-in-python\/","url_meta":{"origin":10181,"position":2},"title":"Getting started with Cython: How to perform >1.7 billion calculations per second in Python","author":"Paolo Redaelli","date":"2022-01-14","format":false,"excerpt":"Getting started with Cython: How to perform >1.7 billion calculations per second in Python Combine the ease of Python with the speed of C Mike HulsDec 8, 2021\u00b711 min read Cython will add an afterburner to your program (image by Oscar Sutton on Unsplash) The main advantage of Python is\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/monodes.com\/predaelli\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6494,"url":"https:\/\/monodes.com\/predaelli\/2020\/01\/25\/a-quick-dive-into-pythons-__slots__-noteworthy-the-journal-blog\/","url_meta":{"origin":10181,"position":3},"title":"A quick dive into Python\u2019s \u201c__slots__\u201d &#8211; Noteworthy &#8211; The Journal Blog","author":"Paolo Redaelli","date":"2020-01-25","format":false,"excerpt":"A quick dive into Python\u2019s \u201cslots\u201d - Noteworthy - The Journal Blog Or how to try mimik a strongly typed language in a weakly typed one or something like this.... A quick dive into Python\u2019s \u201c__slots__\u201d Stephen Jayakar Nov 10, 2018 \u00b7 6 min read or my first Medium article,\u2026","rel":"","context":"In &quot;Documentations&quot;","block_context":{"text":"Documentations","link":"https:\/\/monodes.com\/predaelli\/category\/documentations\/"},"img":{"alt_text":"Stephen Jayakar","src":"https:\/\/i0.wp.com\/miro.medium.com\/fit\/c\/96\/96\/2%2AvFNVadKjiDYAViJUxGzsTg.jpeg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":11033,"url":"https:\/\/monodes.com\/predaelli\/2023\/12\/17\/textual\/","url_meta":{"origin":10181,"position":4},"title":"Textual","author":"Paolo Redaelli","date":"2023-12-17","format":false,"excerpt":"Textual is a TUI framework for Python, inspired by modern web development. Textual is a Rapid Application Development framework for Python, built by Textualize.io. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal or a web browser! Well, I just wish I could have\u2026","rel":"","context":"In &quot;Eiffel&quot;","block_context":{"text":"Eiffel","link":"https:\/\/monodes.com\/predaelli\/category\/eiffel\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":12976,"url":"https:\/\/monodes.com\/predaelli\/2025\/03\/15\/codon-high-performance-python-compiler\/","url_meta":{"origin":10181,"position":5},"title":"Codon: high-performance Python compiler","author":"Paolo Redaelli","date":"2025-03-15","format":false,"excerpt":"Codon: high-performance Python compiler Codon is a high-performance Python implementation that compiles to native machine code without any runtime overhead. Typical speedups over vanilla Python are on the order of 10-100x or more, on a single thread. Codon's performance is typically on par with (and sometimes better than) that of\u2026","rel":"","context":"In &quot;Python&quot;","block_context":{"text":"Python","link":"https:\/\/monodes.com\/predaelli\/category\/python\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/10181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/comments?post=10181"}],"version-history":[{"count":0,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/posts\/10181\/revisions"}],"wp:attachment":[{"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/media?parent=10181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/categories?post=10181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/monodes.com\/predaelli\/wp-json\/wp\/v2\/tags?post=10181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}