Skip to content

Remove DigestUtils.getDigestInExclusiveMode() now that SsdModule has …#14231

Closed
bjacklyn wants to merge 1 commit intobazelbuild:masterfrom
bjacklyn:bjacklyn/fix-drop-experimental-multi-threaded-digest
Closed

Remove DigestUtils.getDigestInExclusiveMode() now that SsdModule has …#14231
bjacklyn wants to merge 1 commit intobazelbuild:masterfrom
bjacklyn:bjacklyn/fix-drop-experimental-multi-threaded-digest

Conversation

@bjacklyn
Copy link
Copy Markdown

@bjacklyn bjacklyn commented Nov 5, 2021

…been removed

There used to be a cli flag --experimental_multi_threaded_digest which defaulted to true
and therefore would not compute the file digest in exclusive mode unless overridden to false.
When that flag was removed this code was accidentally left behind which instead causes bazel to always
compute file digests in exclusive mode for all files larger than MULTI_THREADED_DIGEST_MAX_FILE_SIZE.

This causes bazel to take 5-6x longer to 'check cached actions' in my org's builds,
specifically increasing the time from 30 secs to 2 mins 30 secs for fully cached no-op builds.

Fixes #14034

…been removed

There used to be a cli flag --experimental_multi_threaded_digest which defaulted to true
and therefore would not compute the file digest in exclusive mode unless overridden to false.
When that flag was removed this code was accidentally left behind which instead causes bazel to always
compute file digests in exclusive mode for all files larger than MULTI_THREADED_DIGEST_MAX_FILE_SIZE.

This causes bazel to take 5-6x longer to 'check cached actions' in my org's builds,
specifically increasing the time from 30 secs to 2 mins 30 secs for fully cached no-op builds.

Fixes bazelbuild#14034
@google-cla google-cla Bot added the cla: yes label Nov 5, 2021
@bjacklyn
Copy link
Copy Markdown
Author

bjacklyn commented Nov 5, 2021

cc @meisterT @Wyverald

Copy link
Copy Markdown
Member

@Wyverald Wyverald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! I'll merge this shortly.

@bazel-io bazel-io closed this in 77a002c Nov 5, 2021
meisterT pushed a commit to meisterT/bazel that referenced this pull request Nov 8, 2021
…been removed

There used to be a cli flag --experimental_multi_threaded_digest which defaulted to true
and therefore would not compute the file digest in exclusive mode unless overridden to false.
When that flag was removed this code was accidentally left behind which instead causes bazel to always
compute file digests in exclusive mode for all files larger than MULTI_THREADED_DIGEST_MAX_FILE_SIZE.

This causes bazel to take 5-6x longer to 'check cached actions' in my org's builds,
specifically increasing the time from 30 secs to 2 mins 30 secs for fully cached no-op builds.

Fixes bazelbuild#14034

Closes bazelbuild#14231.

PiperOrigin-RevId: 407790990
(cherry picked from commit 77a002c)
Wyverald pushed a commit that referenced this pull request Nov 8, 2021
#14242)

…been removed

There used to be a cli flag --experimental_multi_threaded_digest which defaulted to true
and therefore would not compute the file digest in exclusive mode unless overridden to false.
When that flag was removed this code was accidentally left behind which instead causes bazel to always
compute file digests in exclusive mode for all files larger than MULTI_THREADED_DIGEST_MAX_FILE_SIZE.

This causes bazel to take 5-6x longer to 'check cached actions' in my org's builds,
specifically increasing the time from 30 secs to 2 mins 30 secs for fully cached no-op builds.

Fixes #14034

Closes #14231.

PiperOrigin-RevId: 407790990
(cherry picked from commit 77a002c)

Co-authored-by: Brandon Jacklyn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop experimental_multi_threaded_digest

2 participants