Subscribe on changes!

Maybe A Better getSequence() method

avatar
Oct 26th 2020

What problem does this feature solve?

Improve the performance of getSequence method by using bit operations

What does the proposed API look like?

// packages/runtime-core/src/renderer.ts  line 2306
c = ((u +  v) / 2) | 0
// change to 
c = u  +  ((v - u) >> 1) | 0
avatar
Oct 26th 2020

Feel free to open a PR with a benchmark to prove the improvement!