chore(runtime-core): use bit operations instead (#4142)
This commit is contained in:
parent
df0ce21836
commit
84f6791e89
@ -2485,7 +2485,7 @@ function getSequence(arr: number[]): number[] {
|
|||||||
u = 0
|
u = 0
|
||||||
v = result.length - 1
|
v = result.length - 1
|
||||||
while (u < v) {
|
while (u < v) {
|
||||||
c = ((u + v) / 2) | 0
|
c = (u + v) >> 1
|
||||||
if (arr[result[c]] < arrI) {
|
if (arr[result[c]] < arrI) {
|
||||||
u = c + 1
|
u = c + 1
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user