I have type variable which may have been set to 'D' or 'E'<br><br>Now, which one of following statements are more efficient<br><br>if type =='D' or type == 'E':<br><br>or<br><br>if re.search("D|E", type):<br>
<br>Please let me know because the function is going to called 10s of millions of times.<br><br>Thanks<br>Kilo<br><br>