-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Simplify Jbig2Image.decodeInteger() #4773
Conversation
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.22.172.223:8877/3f14d18f9ea041f/output.txt |
From: Bot.io (Linux)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/8d0f2858890fce6/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/3f14d18f9ea041f/output.txt Total script time: 23.64 mins
|
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/8d0f2858890fce6/output.txt Total script time: 26.01 mins
|
If I pulled Whichever version I use (old, inlined readBits(), 'global' readBits()), the speed difference between any of the versions neglectible. Most calls are made by So since speed doesn't really matter here, I'd rather keep the simplest version and leave it like it is. |
Let's go for simpler version. Thank you for the patch. |
Simplify Jbig2Image.decodeInteger()
That sounds reasonable. Good job on making this code easier to read/maintain! |
The nested braches look a little bit strange, but the new code is actually easier to compare to the spec.