well the obvious answer would be "less is better", meaning the less "thinking" services has to do the better, don't use any modules, no mysql .. etc. Anope doesn't use a large footprint to start with. I had it running quite nicely on a system with 80MB of ram + plus an ircd and a few other things.