Assume you have a webapp with a 1000000 user logins in an hour.
and the following code get executed on each user login :
if (DevMode) {
// make an Ajax call
} else if (RealMode) {
// make other Ajax call
} else {
// Do something else
}
Assuming that the DevMode login occurs only for 5% of the total user logins, is it more efficient to write the code as following:
if (RealMode) {
// make an Ajax call
} else if (DevMode) {
// make other Ajax call
} else {
// Do something else
}
Thanks
DevModeis only 5%. What's the other 95%? 95%RealModeand 0% neither? 5%RealModeand 90% neither?