Fast Python file entropy

1 · Jonas Plum · June 2, 2015, 5 p.m.
I was looking for a fast and simple algorithm to calculate entropy of some bytes in Python. I found Ero Carreras post which contains a simple Python implementation. Using the collections module I could speed it up 4.5 times :) ! ...