-
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
Remove the unused defaultColor
property on ColorSpace
instances
#10000
Remove the unused defaultColor
property on ColorSpace
instances
#10000
Conversation
I think converting this to textual comments instead of code comments would be better, i.e., something like |
That sounds really simple, until you start looking at either the AlternateCS or DeviceCmykCS cases :-(
In either of those cases, trying to explain things with a "regular" comment is going to be a lot less clear not to mention longer. |
This property is not only completely unused now, it never actually appears to have been used. Even though the memory savings, from not initializing these extra typed arrays, won't be significant in the grand scheme of things it still seems completely unnecessary to keep allocating this data. As far as I can tell, the main reason for the existence of `defaultColor` seem to be for documentation purposes. Hence the code is changed into comments instead, to keep the information around (but without the unnecessary allocations).
9e0d1af
to
45b7b86
Compare
Looks better this way. Let's see how it goes. /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/06fb61962a3e007/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.215.176.217:8877/8be3cbc3187c885/output.txt |
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/8be3cbc3187c885/output.txt Total script time: 24.70 mins
|
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/06fb61962a3e007/output.txt Total script time: 57.77 mins
|
Nice optimization! |
This property is not only completely unused now, it never actually appears to have been used. Even though the memory savings, from not initializing these extra typed arrays, won't be significant in the grand scheme of things it still seems completely unnecessary to keep allocating this data.
As far as I can tell, the main reason for the existence of
defaultColor
seem to be for documentation purposes. Hence the code is changed into comments instead, to keep the information around (but without the unnecessary allocations).