-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Improve the implementation in src/core/writer.js
a little bit
#19692
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
Conversation
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/040553b9c66b8ce/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/ad9c7c00294f094/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/040553b9c66b8ce/output.txt Total script time: 30.02 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/ad9c7c00294f094/output.txt Total script time: 59.78 mins
|
- Let the `writeString` helper function return the new offset, to avoid having to recompute that in multiple spots. - In the `computeMD5` helper function we can create the `md5Buffer` via Array-destructuring, rather than using a manual loop.
c58067b
to
50eb97a
Compare
/botio unittest |
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/5c3d0e326d7f23d/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 1 Live output at: http://54.193.163.58:8877/b2c9f4d7c0e4b20/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/5c3d0e326d7f23d/output.txt Total script time: 2.39 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/b2c9f4d7c0e4b20/output.txt Total script time: 7.87 mins
|
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.
LGTM. Thank you.
Let the
writeString
helper function return the new offset, to avoid having to recompute that in multiple spots.In the
computeMD5
helper function we can create themd5Buffer
via Array-destructuring, rather than using a manual loop.