We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c87aa82 commit 65aeaf7Copy full SHA for 65aeaf7
1 file changed
src/vs/base/common/paths.ts
@@ -229,6 +229,9 @@ export function getRoot(path: string, sep: string = '/'): string {
229
}
230
231
export const join: (...parts: string[]) => string = function () {
232
+ // Not using a function with var-args because of how TS compiles
233
+ // them to JS - it would result in 2*n runtime cost instead
234
+ // of 1*n, where n is parts.length.
235
236
let value = '';
237
for (let i = 0; i < arguments.length; i++) {
0 commit comments