Skip to content

Replace busy-wait with sleepSync#76

Open
tembo[bot] wants to merge 1 commit intomainfrom
tembo/shippost-scannerbot-fix-code-issue
Open

Replace busy-wait with sleepSync#76
tembo[bot] wants to merge 1 commit intomainfrom
tembo/shippost-scannerbot-fix-code-issue

Conversation

@tembo
Copy link
Copy Markdown
Contributor

@tembo tembo bot commented Mar 7, 2026

Summary

Replaced CPU-intensive busy-wait loop in file lock acquisition with efficient sleepSync() function using Atomics.wait() on a SharedArrayBuffer. This eliminates CPU spinning during lock retries while maintaining the same retry behavior.


Want tembo to make any changes? Add a review or comment with @tembo and i'll get back to work!

View on Tembo View Agent Settings

@tembo tembo bot added the tembo Pull request created by Tembo label Mar 7, 2026
@blocksorg
Copy link
Copy Markdown

blocksorg bot commented Mar 7, 2026

Mention Blocks like a regular teammate with your question or request:

@blocks review this pull request
@blocks make the following changes ...
@blocks create an issue from what was mentioned in the following comment ...
@blocks explain the following code ...
@blocks are there any security or performance concerns?

Run @blocks /help for more information.

Workspace settings | Disable this message

@tembo
Copy link
Copy Markdown
Contributor Author

tembo bot commented Mar 7, 2026

Requesting review from @ryw who has experience with the following files modified in this PR:

  • package-lock.json
  • .beads/issues.jsonl
  • src/services/file-system.ts

@tembo tembo bot requested a review from ryw March 7, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tembo Pull request created by Tembo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants