<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Jesús Becerra</title>
    <description>The latest articles on Forem by Jesús Becerra (@coleramorbus).</description>
    <link>https://forem.com/coleramorbus</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1325817%2Fd89303b0-a788-4bd6-a558-11a2390e5da1.jpg</url>
      <title>Forem: Jesús Becerra</title>
      <link>https://forem.com/coleramorbus</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/coleramorbus"/>
    <language>en</language>
    <item>
      <title>Make Your Python Code 10x Faster with These Tricks</title>
      <dc:creator>Jesús Becerra</dc:creator>
      <pubDate>Thu, 22 May 2025 16:11:18 +0000</pubDate>
      <link>https://forem.com/coleramorbus/make-your-python-code-10x-faster-with-these-tricks-3lj4</link>
      <guid>https://forem.com/coleramorbus/make-your-python-code-10x-faster-with-these-tricks-3lj4</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;1. &lt;code&gt;__slots__&lt;/code&gt;&lt;/strong&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Person&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;__slots__&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;name&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;age&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;strong&gt;Why use this trick?&lt;/strong&gt;:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reduce memory usage&lt;/strong&gt;: Python usually uses a &lt;code&gt;__dict__&lt;/code&gt; to store object attributes, which consumes more resources and is slow.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Faster attribute access&lt;/strong&gt;: With &lt;code&gt;__slots__&lt;/code&gt;, Python use a static array, eliminating the find key overhead.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Useful when you create millions of instances&lt;/strong&gt; Data Processing, ETL, Data Science.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;2. Generator Expressions (&lt;code&gt;(x for x in ...)&lt;/code&gt;)&lt;/strong&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1_000_000&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;strong&gt;Why use this trick?&lt;/strong&gt;:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Avoid creating temporary lists&lt;/strong&gt;: &lt;code&gt;sum([x**2 for x in ...])&lt;/code&gt; first creates a list in memory, then applies the sum function.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reduce memory usage&lt;/strong&gt;: Useful when you create large datasets.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;3. Memoization with &lt;code&gt;functools.lru_cache&lt;/code&gt;&lt;/strong&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;functools&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;lru_cache&lt;/span&gt;

&lt;span class="nd"&gt;@lru_cache&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;maxsize&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;fib&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;fib&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nf"&gt;fib&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;strong&gt;Why use this trick?&lt;/strong&gt;:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Avoid recalculate results&lt;/strong&gt;: Store in cache the values for the same parameters.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pure functions (same input → same output)&lt;/strong&gt;: Ideal for recursive algorithms like Fibonacci, search in tree.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;4. Vectorization with NumPy&lt;/strong&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;
&lt;span class="n"&gt;arr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;array&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;arr&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;strong&gt;Why use this trick?&lt;/strong&gt;:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Optimized operations in C&lt;/strong&gt;: NumPy execute operations in contiguous memory blocks (arrays in C), without loops in Python.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bypassing the GIL&lt;/strong&gt;: Operations are applied directly to the data without Python loops.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;5. Cython compilation&lt;/strong&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# example.pyx (Cython)
&lt;/span&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;int&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;int&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;strong&gt;Why use this trick?&lt;/strong&gt;:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Converts Python code into C&lt;/strong&gt;: Cython compiles code into native C extensions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Static types improve efficiency&lt;/strong&gt;: Declare Types (&lt;code&gt;int&lt;/code&gt;, &lt;code&gt;float&lt;/code&gt;), avoid python's dynamic typing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Faster mathematical computations&lt;/strong&gt;: 100x Faster math operations.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;6. &lt;code&gt;collections.defaultdict&lt;/code&gt; for Dictionaries&lt;/strong&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;collections&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;defaultdict&lt;/span&gt;
&lt;span class="n"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;defaultdict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="c1"&gt;# Initialize values by default
&lt;/span&gt;&lt;span class="n"&gt;count&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;word&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;strong&gt;Why use this trick?&lt;/strong&gt;:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Avoid if key in dict checks&lt;/strong&gt;: In a normal dict, you need check if the key exist first. &lt;code&gt;defaultdict&lt;/code&gt; do it for you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Less calls to functions&lt;/strong&gt;: More efficient that &lt;code&gt;dict.setdefault()&lt;/code&gt; or &lt;code&gt;try/except KeyError&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;7. Concatenation with &lt;code&gt;str.join()&lt;/code&gt;&lt;/strong&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="sh"&gt;""&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;str_list&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;strong&gt;Why use this trick?&lt;/strong&gt;:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Strings are immutable&lt;/strong&gt;: In Python, each &lt;code&gt;+=&lt;/code&gt; create a new string object (This process is O(n²)).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;join()&lt;/code&gt; pre-assign memory&lt;/strong&gt;: Join each item in a only operation (This process is O(n)).&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Performance Improvements&lt;/strong&gt;
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Trick&lt;/th&gt;
&lt;th&gt;Improvement&lt;/th&gt;
&lt;th&gt;Ideal Use Case&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;__slots__&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;~20-30% more faster&lt;/td&gt;
&lt;td&gt;Handling mulpliple object instances&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Generators&lt;/td&gt;
&lt;td&gt;2-5x (in-memory)&lt;/td&gt;
&lt;td&gt;Big data processing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;lru_cache&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;10-100x (velocity)&lt;/td&gt;
&lt;td&gt;Recursively called functions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NumPy&lt;/td&gt;
&lt;td&gt;10-1000x&lt;/td&gt;
&lt;td&gt;Matrix operations&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cython&lt;/td&gt;
&lt;td&gt;10-100x&lt;/td&gt;
&lt;td&gt;Heavy mathematical loops&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;defaultdict&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;~2x&lt;/td&gt;
&lt;td&gt;Counting&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;frecuencies&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;str.join()&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;10-100x (big N)&lt;/td&gt;
&lt;td&gt;Mass text concatenations&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;Compatibility by Python Version&lt;/strong&gt;
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;1. &lt;code&gt;__slots__&lt;/code&gt;&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Compatible Versions:&lt;/strong&gt; Python 2.7 and all Python 3.x versions (3.0+).
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Details:&lt;/strong&gt; Works the same across all modern versions.
&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;2. Generator Expressions (&lt;code&gt;(x for x in ...)&lt;/code&gt;)&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Compatible Versions:&lt;/strong&gt; Python 2.4+ (but optimized in Python 3.x).
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Improvements in Python 3:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Generators are more memory-efficient in Python 3.
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;range()&lt;/code&gt; in Python 3 is already a generator (in Python 2, it was a list).
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;3. &lt;code&gt;functools.lru_cache&lt;/code&gt;&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Compatible Versions:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Python 3.2+ (included in the standard library).
&lt;/li&gt;
&lt;li&gt;Python 2.7 requires &lt;code&gt;pip install functools32&lt;/code&gt;.
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;Changes in Python 3.8+:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;New &lt;code&gt;user_function&lt;/code&gt; parameter for customization.
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;4. Vectorization with NumPy&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Compatible Versions:&lt;/strong&gt; Python 2.7 and Python 3.x (requires NumPy ≥ 1.16 for Python 3.7+).
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Recommendation:&lt;/strong&gt; Use NumPy ≥ 1.19 for Python 3.9+ (better support).
&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;5. Cython&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Compatible Versions:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Python 2.7 (supported up to Cython 0.29.x).
&lt;/li&gt;
&lt;li&gt;Python 3.x (requires Cython ≥ 3.0 for Python 3.11+).
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;Important:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Python 3.11+ has optimized the interpreter, reducing the performance gap between native Python and Cython in some cases.
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;6. &lt;code&gt;collections.defaultdict&lt;/code&gt;&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Compatible Versions:&lt;/strong&gt; Python 2.5+ and all Python 3.x versions.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No significant changes across versions.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;7. String Concatenation with &lt;code&gt;str.join()&lt;/code&gt;&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Compatible Versions:&lt;/strong&gt; Python 2.x and 3.x.
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Optimization in Python 3.9+:&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Internal improvements in string handling (PEP 584).
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Resume&lt;/strong&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Data Structures&lt;/strong&gt;: &lt;code&gt;__slots__&lt;/code&gt;, &lt;code&gt;defaultdict&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory &amp;amp; CPU Efficiency&lt;/strong&gt;: Generators, NumPy, Cython.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Algorithmic Optimization&lt;/strong&gt;: &lt;code&gt;lru_cache&lt;/code&gt;, &lt;code&gt;str.join()&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>python</category>
      <category>development</category>
      <category>performance</category>
    </item>
  </channel>
</rss>
