Improved performance

The editor should run smoothly on any map size now.