Skip to content

Commit d101858

Browse files
committed
chore: add some comments about ic
1 parent 0453af3 commit d101858

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class Agent11 {
5252
hostname: match && match[2],
5353
port: match && match[3]
5454
}
55+
// perf: this branch has polymorphic inline caches
5556
} else if (typeof url === 'object' && url !== null) {
5657
return {
5758
protocol: url.protocol,
@@ -64,6 +65,7 @@ class Agent11 {
6465

6566
static getKey (url, options) {
6667
let key = url.protocol || 'http:'
68+
// perf: this part has polymorphic inline caches
6769
if (key.charAt(key.length - 1) !== ':') {
6870
key += ':'
6971
}

0 commit comments

Comments
 (0)