-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split the big jit files to allow better GitHub experience. #13359
Comments
Browser issue? I see all 25K lines at https://github.com/dotnet/coreclr/blob/master/src/jit/flowgraph.cpp. It takes time though and that doesn't mean smaller isn't better. |
There was a discussion somewhat similar to this back when this repo was still new: https://github.com/dotnet/coreclr/issues/408#issuecomment-77922359 |
I got the answer from the GitHub support:
So I think it would be rational to make a 400kb limit for all files that we have, it means we need to split 9 files:
|
Any idea how they can be split in a rational manner (e.g. not by cutting it in half and having something like importer1.cpp and importer2.cpp 😁)? For flowgraph.cpp I'm sure we can find code in it that's not actually flowgraph related and perhaps that there's enough of it to move it somewhere else and matter. Not sure about the rest. |
I think it should be individual in each case, and I think compiler.h is the biggest problem. For example, for importer, it is probably enough to extract Also, we can extract |
GitHub doesn't support showing huge files, for example, https://github.com/dotnet/coreclr/blob/master/src/jit/flowgraph.cpp has 25680 lines, but GitHub will show you only the first 14908. And it doesn't show any warning that the shown part is not full.
The same happens with reviewing diffs.
GitHub limits are not clear, https://help.github.com/en/articles/limits-for-viewing-content-and-diffs-in-a-repository tells about 1MB for text files, but flowgraph is smaller, I wrote them a question about code file sizes limits.
Once we get the actual limits we will be able to determinate the list of files that we need to split.
See also disscusion in dotnet/coreclr#26392 (comment).
cc @dotnet/jit-contrib
category:implementation
theme:jit-coding-style
skill-level:beginner
cost:medium
The text was updated successfully, but these errors were encountered: