-
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
Clean-up the data that we're sending with "GetDocRequest" #15555
Clean-up the data that we're sending with "GetDocRequest" #15555
Conversation
It seems that this property became *effectively* unused already in PR 8617, however we missed removing it as part of the clean-up in PR 10376.
…Request" Rather than sending all of these parameters individually and then grouping them together on the worker-thread, we can simply handle that in the API instead.
Looking at the code on the worker-thread, there doesn't appear to be any particular reason for placing *some* of the properties in a `source`-object when sending them with "GetDocRequest". As is often the case the explanation for this structure is rather "for historical reasons", since originally we simply sent the `source`-object as-is. Doing that was obviously a bad idea, for a couple of reasons: - It makes it less clear what is/isn't actually needed on the worker-thread. - Sending unused properties will unnecessarily increase memory usage. - The `source`-object may contain unclonable data, which would break the library.
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 1 Live output at: http://54.193.163.58:8877/c1378f063e241fd/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.241.84.105:8877/bb5c4e516a88fc2/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/bb5c4e516a88fc2/output.txt Total script time: 25.45 mins
Image differences available at: http://54.241.84.105:8877/bb5c4e516a88fc2/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/c1378f063e241fd/output.txt Total script time: 29.86 mins
Image differences available at: http://54.193.163.58:8877/c1378f063e241fd/reftest-analyzer.html#web=eq.log |
Looks good! |
Please refer to the individual commit messages for additional details.