Skip to content

Reducing tsbuildinfo size further - #43695

Merged
Sheetal Nandi (sheetalkamat) merged 4 commits into
masterfrom
tsbuildInfoOptions
Apr 17, 2021
Merged

Sheetal Nandi (sheetalkamat) merged 4 commits into
masterfrom
tsbuildInfoOptions

Conversation

@sheetalkamat

@sheetalkamat Sheetal Nandi (sheetalkamat) commented Apr 15, 2021 •

Copy link
Copy Markdown
Member

Here are the numbers with one of the internal tsbuildinfo
4de704d Only emit compiler options that affect

04/15/2021  01:26 PM           670,576 infoNew.json
04/15/2021  01:26 PM         1,023,762 infoOriginal.json

a422f9e: Dont emit affectsGlobalScope if its not true

04/15/2021  01:38 PM           612,256 infoNew.json
04/15/2021  01:38 PM         1,023,762 infoOriginal.json

658587d: FileInfo is encoded as string if FileInfo.version === FileInfo.signature && !FileInfo.affectsGlobalScope, otherwise property signature is encoded as false if it was undefined, undefined if FileInfo.version === FileInfo.signature and actual signature otherwise

04/15/2021  03:47 PM           410,798 infoNew.json
04/15/2021  03:47 PM         1,023,762 infoOriginal.json

@amcasey Andrew Casey (amcasey) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just measuring against the motivating code base (ETA one hour).

Comment thread src/compiler/builder.ts Outdated
@amcasey

Copy link
Copy Markdown
Member

tsbuildinfo size dropped from 1345MB to 467MB and total build time dropped ~15%. 🎉

Comment thread src/compiler/builder.ts Outdated
@sheetalkamat
Sheetal Nandi (sheetalkamat) deleted the tsbuildInfoOptions branch April 17, 2021 06:22
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants