-
Notifications
You must be signed in to change notification settings - Fork 10k
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 classes in src/core/obj.js
into separate files
#13235
Conversation
I think this is a good idea now that the size and functionality of |
The size of the `src/core/obj.js` file has increased slowly over the years, and it also contains a fair amount of *distinct* functionality. In order to improve readability and make it easier to navigate through the code, this patch moves the `ObjectLoader` into its own file.
The size of the `src/core/obj.js` file has increased slowly over the years, and it also contains a fair amount of *distinct* functionality. In order to improve readability and make it easier to navigate through the code, this patch moves the `FileSpec` into its own file.
…file The size of the `src/core/obj.js` file has increased slowly over the years, and it also contains a fair amount of *distinct* functionality. In order to improve readability and make it easier to navigate through the code, this patch moves `NameTree`/`NumberTree` into its own file.
The size of the `src/core/obj.js` file has increased slowly over the years, and it also contains a fair amount of *distinct* functionality. In order to improve readability and make it easier to navigate through the code, this patch moves the `XRef` into its own file.
Now that only the `Catalog` remains in this file, after the previous patches, it makes sense to rename the file to reduce confusion.
63b300b
to
1d6d476
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me if the tests pass. Looks much better like this; thank you for doing this!
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/64722e6dcfbc7d3/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://3.101.106.178:8877/7480760df88b181/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/64722e6dcfbc7d3/output.txt Total script time: 25.58 mins
Image differences available at: http://54.67.70.0:8877/64722e6dcfbc7d3/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/7480760df88b181/output.txt Total script time: 28.93 mins
Image differences available at: http://3.101.106.178:8877/7480760df88b181/reftest-analyzer.html#web=eq.log |
Nice work! |
The size of the
src/core/obj.js
file has increased slowly over the years, and it also contains a fair amount of distinct functionality.In order to improve readability and make it easier to navigate through the code, these patches move (and re-factor) the different classes into their own files.
In order to simplify reviewing: I'd suggest looking at one commit at a time, and using the
?w=1
flag to reduce the size of the diffs.