I've encountered the problem in this question: JavaScript: Bitwise shift of long long number
and converted all my relevant places in code from shifts to Math.pow(2,x) operations. Now I'm encountered a serious performance problem.
Is there a "gold way" to go? I mean a safe shift operations (until 50 bits is enough for my purpose) which are also performing well?