location for ignition box?

When upgrading from points to electronic ignitions, I've seen the orange/gold boxes mounted everywhere- including under the dash. Is there a consensus on the best location? I was thinking heat may be a factor in longevity, so toward the front up closer to the grill openings or on the firewall? For the stock look, does mounting under the dash (longer wire) affect the performance of the unit?