Python Snacks logo
Python Snacks
AdvertiseContact
Subscribe
  • Python Snacks
  • Topics
  • performance

performance

Profiling, timeit, algorithm efficiency.

best-practicescomparisongeneratorscareertype hintspythonic thinkingbeginnerdecoratorsreferencedocumentationconcurrencymetaprogrammingdata analysisfunctionscheat sheetdata structuresartificial intelligencetool-reviewadvancedwebsecurityOne-Offssnippettoolingworkflowstandard librarybreakdownpackagechecklisttemplateintermediateclicase-studyquick winpackagingasynccontrol flowgotchasoopdeep diveperformance
snippetsnippet
+2+2
Using Python's LRU Cache
Jun 18, 2025

Using Python's LRU Cache

Caching your program's output can increase significantly. Using Python's functools.lru_cache decorator makes creating caches easy.

Brandon Molyneaux
Brandon Molyneaux
beginnerbeginner
+3+3
Writing Faster Code: 7 Simple Ways to Improve Your Python Loops
Sep 26, 2024

Writing Faster Code: 7 Simple Ways to Improve Your Python Loops

Practical tips to speed up your Python code and make your loops more efficient.

Brandon Molyneaux
Brandon Molyneaux
Become a better software engineer with Python.

Python Snacks

Become a better software engineer with Python.

Home

Posts

Authors

Account

Upgrade

Advertise

Advertise

© 2025 Python Snacks.

Privacy policy

Terms of use

Powered by beehiiv