Skip to content
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

NETSCRIPT: Rework disableLog for efficiency #1589

Merged
merged 1 commit into from
Aug 17, 2024

Commits on Aug 16, 2024

  1. Rework disableLog for efficiency

    The current implementation was naive; disableLog("ALL") was storing a
    key for every function, and iterating over a different object to do it
    (when iterating over objects is quite slow).
    
    The common cases of Bitburner (and especially batching, where efficiency
    matters most) are either never disabling anything, or disabling "ALL".
    This optimizes for these two cases, at the expense of slightly more
    complicated code to deal with the less-common edge cases.
    d0sboots committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    788fb9a View commit details
    Browse the repository at this point in the history