I doubt it has anything to do with that at all, that's not a performance intensive operation at all. Rendering a map, however, can be very performance intensive when done the wrong way, as I suspect it is being here.
It could of course be thousands of other things too (and in combination), but it's not a bad place to start.