SDShant Danielyaninshant.hashnode.dev·Jun 24, 2024 · 4 min readHow to Measure Functions Performance Using DecoratorsDecorators in Python are a powerful tool that allows to adjust or enhance the behavior of functions without modifying them. This structural pattern can be especially useful in performance measurements, where we can gauge and log the execution time of...00
SDShant Danielyaninshant.hashnode.dev·Jun 20, 2024 · 3 min readFiltering Arrays Efficiently in PythonCombination of list comprehension or generator expression and all() function can be powerful mechanism for filtering values in arrays (lists, tuples, sets, dictionaries or strings). all() function explicitly indicates that we're verifying if a condi...00