Skip to content

Commit 83e2cd2

Browse files
committed
Clarify perf comment
The actual unoptimized bytecode contains one additional instruction but this is definitely a bit faster in benchmarks
1 parent f3fc813 commit 83e2cd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tailwindcss/src/source-maps/line-table.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function createLineTable(source: string): LineTable {
6262
let line = 0
6363
let count = table.length
6464
while (count > 0) {
65-
// `| 0` forces integer bytecode generation
65+
// `| 0` improves performance (in V8 at least)
6666
let mid = (count | 0) >> 1
6767
let i = line + mid
6868
if (table[i] <= offset) {

0 commit comments

Comments
 (0)