chore(runtime-core): use bit operations instead (#4142)

This commit is contained in:
leno 2021-07-19 22:32:14 +08:00 committed by GitHub
parent df0ce21836
commit 84f6791e89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2485,7 +2485,7 @@ function getSequence(arr: number[]): number[] {
u = 0
v = result.length - 1
while (u < v) {
c = ((u + v) / 2) | 0
c = (u + v) >> 1
if (arr[result[c]] < arrI) {
u = c + 1
} else {