Assuming this is not just happening on my machine, would it not make sense to cache a few of the common texture thumbnail sizes, rather than recomputing them all the time?
Besides making the cpu crank all the time, with even a modest number of textures, various parts of the interface become barely usable: