5 tips to speed up your Python code

Posted by Bob on Tue 21 February 2017 in Best practices • Tagged with performance, data structures, pythonic, generators, map, builtin, algorithms, regex, patterns • 5 min read

In this post I will give you 5 tips to speed up your code.


Continue reading

A great book that makes algorithms accessible

Posted by Bob on Tue 03 January 2017 in Books • Tagged with algorithms, data structures, performance, collections • 3 min read

I finished reading Grokking Algorithms, it's a very accessible resource for learning algorithms / data structures, highly recommended.


Continue reading

Read the stdlib: deque

Posted by Bob on Wed 21 December 2016 in Data • Tagged with collections, data structures, performance, stdlib, deque • 2 min read

Use collections.deque to rotate letters in string (or elements in list). It has a native method which performs faster too.


Continue reading