-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into nektro-patch-18634
- Loading branch information
Showing
146 changed files
with
11,942 additions
and
5,242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
command script import vendor/zig/tools/lldb_pretty_printers.py | ||
# command script import vendor/zig/tools/lldb_pretty_printers.py | ||
command script import vendor/WebKit/Tools/lldb/lldb_webkit.py | ||
|
||
# type summary add --summary-string "${var} | inner=${var[0-30]}, source=${var[33-64]}, tag=${var[31-32]}" "unsigned long" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Buffer } from "node:buffer"; | ||
import { bench, run } from "../runner.mjs"; | ||
|
||
const variations = [ | ||
["latin1", "hello world"], | ||
["utf16", "hello emoji 🤔"], | ||
]; | ||
|
||
for (const [label, string] of variations) { | ||
const big = Buffer.alloc(1000000, string).toString(); | ||
const small = Buffer.from(string).toString(); | ||
const substring = big.slice(0, big.length - 2); | ||
|
||
bench(`${substring.length}`, () => { | ||
return Buffer.byteLength(substring, "utf8"); | ||
}); | ||
|
||
bench(`${small.length}`, () => { | ||
return Buffer.byteLength(small); | ||
}); | ||
|
||
bench(`${big.length}`, () => { | ||
return Buffer.byteLength(big); | ||
}); | ||
} | ||
|
||
await run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.