I remember that I've tried something similar using `np.roll`, which was slower in the end. But the obvious solution didn't come to my mind...typical case of craking a nut with a sledgehammer:-)
Where is actually the place to put such small performance studies? Should they be available to others? And if so where?