You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But 42,797 lines are insane!
I guess there are other solutions?
Generate the closure as a single file: Like bundling! or
Change language: Having to optimize THAT MUCH(e.g. 42,797 lines) may mean the initial choice of language was fundamentally wrong. We should consider porting to faster languages (e.g. C++, Rust, Go, etc).
Can you reopen the issue? Or Creating a new issue for the solutions would be better?
We (the engineers on this team) all work in this file every day. If it were truly a problem that needed solving through some complex external tooling, we would have done it by now. It's not. The prioritization of our finite resources is not going to hinge on your personal distaste of a line count.
Suggestion
Some modules are too large.
For example, src/compiler/checker.ts has 42,797 lines, in one single file.
(Some other modules have a few thousand lines, though that MAY be viewed as suitable in some cases. )
I think that's too much and not so easy to organize and grasp, especially for contributors.
Even several IDE(e.g. vscode) extensions don't properly work for it.
Thus I suggest splitting the logic into more files.
🔍 Search Terms
large file
large module
big file
big module
long file
long module
✅ Viability Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: