The whole design of p2pool is not efficient for large scale farms due to the frequent work restarts. While this could be improved by rewriting it in C this is not really a viable end solution for decentralization.
Yes, a rewrite means a redesign. The existing design is fatally flawed.
M