Optimized segmentation editor further

I don't think it can be optimized much further any more. Please contact me via irc or email if you have any further questions.