-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(compiler): speed up bootstrap time for
isolatedModules:true
(#…
…2055) Initializing `LanguageService` with fetching only `.d.ts` files
- Loading branch information
Showing
63 changed files
with
9,132 additions
and
9,714 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,2 @@ | ||
node_modules | ||
*.log |
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,9 @@ | ||
module.exports = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
globals: { | ||
'ts-jest': { | ||
tsconfig: "tsconfig.spec.json" | ||
} | ||
} | ||
}; |
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,40 @@ | ||
{ | ||
"name": "memory-usage", | ||
"private": true, | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "jest --no-cache --runInBand --logHeapUsage ./test" | ||
}, | ||
"volta": { | ||
"node": "12.18.3" | ||
}, | ||
"wantedDependencies": { | ||
"@nestjs/common": "latest", | ||
"@nestjs/core": "latest", | ||
"@nestjs/platform-express": "latest", | ||
"@nestjs/testing": "latest", | ||
"@types/jest": "latest", | ||
"@types/lodash": "latest", | ||
"jest": "latest", | ||
"lodash": "latest", | ||
"reflect-metadata": "latest", | ||
"rxjs": "latest", | ||
"typescript": "latest", | ||
"weak-napi": "latest" | ||
}, | ||
"devDependencies": { | ||
"@nestjs/common": "^7.4.4", | ||
"@nestjs/core": "^7.4.4", | ||
"@nestjs/platform-express": "^7.4.4", | ||
"@nestjs/testing": "^7.4.4", | ||
"@types/jest": "^26.0.15", | ||
"@types/lodash": "^4.14.162", | ||
"jest": "^26.6.0", | ||
"lodash": "^4.17.20", | ||
"reflect-metadata": "^0.1.13", | ||
"rxjs": "^6.6.3", | ||
"typescript": "^4.0.3", | ||
"weak-napi": "^2.0.2" | ||
} | ||
} |
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,4 @@ | ||
import { Module } from "@nestjs/common"; | ||
|
||
@Module({}) | ||
export class AppModule {} |
11 changes: 11 additions & 0 deletions
11
e2e/__external-repos__/memory-usage/test/force-gc/test1.spec.ts
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,11 @@ | ||
import { range } from "lodash"; | ||
|
||
describe("test1", () => { | ||
afterAll(() => { | ||
global.gc(); | ||
}) | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
11 changes: 11 additions & 0 deletions
11
e2e/__external-repos__/memory-usage/test/force-gc/test10.spec.ts
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,11 @@ | ||
import { range } from "lodash"; | ||
|
||
describe("test10", () => { | ||
afterAll(() => { | ||
global.gc(); | ||
}) | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
11 changes: 11 additions & 0 deletions
11
e2e/__external-repos__/memory-usage/test/force-gc/test11.spec.ts
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,11 @@ | ||
import { range } from "lodash"; | ||
|
||
describe("test11", () => { | ||
afterAll(() => { | ||
global.gc(); | ||
}) | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
11 changes: 11 additions & 0 deletions
11
e2e/__external-repos__/memory-usage/test/force-gc/test12.spec.ts
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,11 @@ | ||
import { range } from "lodash"; | ||
|
||
describe("test12", () => { | ||
afterAll(() => { | ||
global.gc(); | ||
}) | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
11 changes: 11 additions & 0 deletions
11
e2e/__external-repos__/memory-usage/test/force-gc/test2.spec.ts
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,11 @@ | ||
import { range } from "lodash"; | ||
|
||
describe("test2", () => { | ||
afterAll(() => { | ||
global.gc(); | ||
}) | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
11 changes: 11 additions & 0 deletions
11
e2e/__external-repos__/memory-usage/test/force-gc/test3.spec.ts
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,11 @@ | ||
import { range } from "lodash"; | ||
|
||
describe("test3", () => { | ||
afterAll(() => { | ||
global.gc(); | ||
}) | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
11 changes: 11 additions & 0 deletions
11
e2e/__external-repos__/memory-usage/test/force-gc/test4.spec.ts
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,11 @@ | ||
import { range } from "lodash"; | ||
|
||
describe("test4", () => { | ||
afterAll(() => { | ||
global.gc(); | ||
}) | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
11 changes: 11 additions & 0 deletions
11
e2e/__external-repos__/memory-usage/test/force-gc/test5.spec.ts
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,11 @@ | ||
import { range } from "lodash"; | ||
|
||
describe("test5", () => { | ||
afterAll(() => { | ||
global.gc(); | ||
}) | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
11 changes: 11 additions & 0 deletions
11
e2e/__external-repos__/memory-usage/test/force-gc/test6.spec.ts
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,11 @@ | ||
import { range } from "lodash"; | ||
|
||
describe("test6", () => { | ||
afterAll(() => { | ||
global.gc(); | ||
}) | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
11 changes: 11 additions & 0 deletions
11
e2e/__external-repos__/memory-usage/test/force-gc/test7.spec.ts
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,11 @@ | ||
import { range } from "lodash"; | ||
|
||
describe("test7", () => { | ||
afterAll(() => { | ||
global.gc(); | ||
}) | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
11 changes: 11 additions & 0 deletions
11
e2e/__external-repos__/memory-usage/test/force-gc/test8.spec.ts
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,11 @@ | ||
import { range } from "lodash"; | ||
|
||
describe("test8", () => { | ||
afterAll(() => { | ||
global.gc(); | ||
}) | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
11 changes: 11 additions & 0 deletions
11
e2e/__external-repos__/memory-usage/test/force-gc/test9.spec.ts
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,11 @@ | ||
import { range } from "lodash"; | ||
|
||
describe("test9", () => { | ||
afterAll(() => { | ||
global.gc(); | ||
}) | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
25 changes: 25 additions & 0 deletions
25
e2e/__external-repos__/memory-usage/test/with-nest/test1.spec.ts
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,25 @@ | ||
import { NestExpressApplication } from "@nestjs/platform-express"; | ||
import { Test } from "@nestjs/testing"; | ||
import { range } from "lodash"; | ||
import { AppModule } from "../../src/app.module"; | ||
|
||
describe("test1", () => { | ||
let app: NestExpressApplication; | ||
|
||
beforeAll(async () => { | ||
const testingModule = await Test.createTestingModule({ | ||
imports: [AppModule], | ||
}).compile(); | ||
|
||
const app = testingModule.createNestApplication<NestExpressApplication>(); | ||
await app.init(); | ||
}); | ||
|
||
afterAll(async () => { | ||
await app.close(); | ||
}); | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
25 changes: 25 additions & 0 deletions
25
e2e/__external-repos__/memory-usage/test/with-nest/test10.spec.ts
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,25 @@ | ||
import { NestExpressApplication } from "@nestjs/platform-express"; | ||
import { Test } from "@nestjs/testing"; | ||
import { range } from "lodash"; | ||
import { AppModule } from "../../src/app.module"; | ||
|
||
describe("test10", () => { | ||
let app: NestExpressApplication; | ||
|
||
beforeAll(async () => { | ||
const testingModule = await Test.createTestingModule({ | ||
imports: [AppModule], | ||
}).compile(); | ||
|
||
const app = testingModule.createNestApplication<NestExpressApplication>(); | ||
await app.init(); | ||
}); | ||
|
||
afterAll(async () => { | ||
await app.close(); | ||
}); | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
25 changes: 25 additions & 0 deletions
25
e2e/__external-repos__/memory-usage/test/with-nest/test11.spec.ts
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,25 @@ | ||
import { NestExpressApplication } from "@nestjs/platform-express"; | ||
import { Test } from "@nestjs/testing"; | ||
import { range } from "lodash"; | ||
import { AppModule } from "../../src/app.module"; | ||
|
||
describe("test11", () => { | ||
let app: NestExpressApplication; | ||
|
||
beforeAll(async () => { | ||
const testingModule = await Test.createTestingModule({ | ||
imports: [AppModule], | ||
}).compile(); | ||
|
||
const app = testingModule.createNestApplication<NestExpressApplication>(); | ||
await app.init(); | ||
}); | ||
|
||
afterAll(async () => { | ||
await app.close(); | ||
}); | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
25 changes: 25 additions & 0 deletions
25
e2e/__external-repos__/memory-usage/test/with-nest/test12.spec.ts
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,25 @@ | ||
import { NestExpressApplication } from "@nestjs/platform-express"; | ||
import { Test } from "@nestjs/testing"; | ||
import { range } from "lodash"; | ||
import { AppModule } from "../../src/app.module"; | ||
|
||
describe("test12", () => { | ||
let app: NestExpressApplication; | ||
|
||
beforeAll(async () => { | ||
const testingModule = await Test.createTestingModule({ | ||
imports: [AppModule], | ||
}).compile(); | ||
|
||
const app = testingModule.createNestApplication<NestExpressApplication>(); | ||
await app.init(); | ||
}); | ||
|
||
afterAll(async () => { | ||
await app.close(); | ||
}); | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
25 changes: 25 additions & 0 deletions
25
e2e/__external-repos__/memory-usage/test/with-nest/test2.spec.ts
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,25 @@ | ||
import { NestExpressApplication } from "@nestjs/platform-express"; | ||
import { Test } from "@nestjs/testing"; | ||
import { range } from "lodash"; | ||
import { AppModule } from "../../src/app.module"; | ||
|
||
describe("test2", () => { | ||
let app: NestExpressApplication; | ||
|
||
beforeAll(async () => { | ||
const testingModule = await Test.createTestingModule({ | ||
imports: [AppModule], | ||
}).compile(); | ||
|
||
const app = testingModule.createNestApplication<NestExpressApplication>(); | ||
await app.init(); | ||
}); | ||
|
||
afterAll(async () => { | ||
await app.close(); | ||
}); | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
25 changes: 25 additions & 0 deletions
25
e2e/__external-repos__/memory-usage/test/with-nest/test3.spec.ts
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,25 @@ | ||
import { NestExpressApplication } from "@nestjs/platform-express"; | ||
import { Test } from "@nestjs/testing"; | ||
import { range } from "lodash"; | ||
import { AppModule } from "../../src/app.module"; | ||
|
||
describe("test3", () => { | ||
let app: NestExpressApplication; | ||
|
||
beforeAll(async () => { | ||
const testingModule = await Test.createTestingModule({ | ||
imports: [AppModule], | ||
}).compile(); | ||
|
||
const app = testingModule.createNestApplication<NestExpressApplication>(); | ||
await app.init(); | ||
}); | ||
|
||
afterAll(async () => { | ||
await app.close(); | ||
}); | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
25 changes: 25 additions & 0 deletions
25
e2e/__external-repos__/memory-usage/test/with-nest/test4.spec.ts
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,25 @@ | ||
import { NestExpressApplication } from "@nestjs/platform-express"; | ||
import { Test } from "@nestjs/testing"; | ||
import { range } from "lodash"; | ||
import { AppModule } from "../../src/app.module"; | ||
|
||
describe("test4", () => { | ||
let app: NestExpressApplication; | ||
|
||
beforeAll(async () => { | ||
const testingModule = await Test.createTestingModule({ | ||
imports: [AppModule], | ||
}).compile(); | ||
|
||
const app = testingModule.createNestApplication<NestExpressApplication>(); | ||
await app.init(); | ||
}); | ||
|
||
afterAll(async () => { | ||
await app.close(); | ||
}); | ||
|
||
test.each(range(0, 100))("%i", () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
Oops, something went wrong.