Skip to content

Commit 0bee3b6

Browse files
Refactor
1 parent bd26d73 commit 0bee3b6

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

packages/cursorless-vscode-e2e/src/suite/performance.vscode.test.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,11 @@ import assert from "assert";
99
import * as vscode from "vscode";
1010
import { endToEndTestSetup } from "../endToEndTestSetup";
1111

12+
const value = Object.fromEntries(
13+
new Array(100).fill("").map((_, i) => [i.toString(), "value"]),
14+
);
1215
const obj = Object.fromEntries(
13-
new Array(100)
14-
.fill("")
15-
.map((_, i) => [
16-
i.toString(),
17-
Object.fromEntries(
18-
new Array(100).fill("").map((_, i) => [i.toString(), "value"]),
19-
),
20-
]),
16+
new Array(100).fill("").map((_, i) => [i.toString(), value]),
2117
);
2218
const content = JSON.stringify(obj, null, 2);
2319
const numLines = content.split("\n").length;

0 commit comments

Comments
 (0)