D&D Optimization
Optimization in 4e: What is needed?
LOL +1
Optimization in 3.5
ROGUES: Use Two-Weapon Fighting and Improved Two-Weapon Fighting, Quick Draw, Rapid Shot, and Haste, and get Alchemist's Fire, Acid, or Holy Water (for against fiends). You should be able to get a massive amount of touch attacks every round, able to hit on a 2+, and be able to multiply your sneak attack damage by 6 or so consistently. Alternately, get a wizard to polymorph you into a Hydra -- enjoy having 7 to 15 sneak attacks per round. Avoid constructs, undead, and dark spaces -- a true rogue knows that shadowy alleyways and misty-filled corridors will prevent him from sneak attacking due to concealment, so restrict your operations to brightly lit rooms and meadows.
WIZARDS: The market price of a golem is increased by 5000 GP per additional HD and 50,000 GP per a size increase. With the Craft Construct feat, you only have to pay half cost, and as a result, you can create a 54 hit dice iron golem for 195,000 gold pieces; it will have 337 HP, keep its immunity to magic, have a BAB of +36 and have a DC 37 poison breath weapon. For reference, a level 20 character can be expected to have 760,000 gold pieces, easily letting you afford 3 of these bad boys, along with a headband of intellect +6 and a few miscellaneous items. Lower level characters can triple advance weaker constructs, to similar results. Also pay attention to Forcecage, a level 7 spell which costs 1500 gp to cast (and also allows NO saving throw and NO spell resistance, imprisoning any creature of 20x20 size or less in an indestructable force barrier. Leave an Acid Fog and Dimensional Anchor spell on it and teleport away, kills nearly anything with no save allowed, but that's beside the point).
SORCERERS: Not exactly the most optimized caster class, being a Sorcerer nonetheless lets you use your Charisma to maximize the benefit of Leadership as well as Planar Binding series. A lack of utility magic is compensated by the ease you'll have in amassing sexy marilith hordes.