Ternary if / then statements should be used for basic logic when there is a clear choice in any case. When you start embedding triple if / then statements, you simply make more headaches for yourself (or your future successors), when changes need to be made or mistakes should be corrected.
As for speed boosts, you won't see the difference between triple or normal statements. However, you will save several bytes from the file size, although this is probably not enough to be remotely obvious.
source
share