Hm, just recently a friend of mine and I hacked together at the FB hacking cup, he in python and I in D. My solutions always were at least faster by a factor of 80. For your example, I could not get a factor of 80, but with -inline it is at least faster than the python version (about 30% faster on my machine) Best regards, Robert