fixpackages is currently a beast when it comes to performance, it took over 8 hours to change my 1000 .tbz2 packages. After a little testing I founf out that the fixdbentries script is the speed bottleneck as it starts at least 5 new processes (bash, grep, sed, xargs, sed) for each .tbz2/update-entry combination. I integrated the functionality into portage.py and from a little testing it improved performance by about 500-800%. Would be nice if someone else could check this for side-effects, so far I haven't seen any problems but you never know.
Created attachment 17698 [details, diff] patched portage.py
using it for a month now, so far no problems.
Included for -r17