Hi,
this is one of the many benefits of krpano.
Just have a look in the 'tiles' folder of both.
Krpano is much more efficient, also in the code.
In ptp you also have much 'dead' code and also GUI related code.
But i would guess the amount of code is hardly adding to this huge difference.
Tuur