Skip to content

⚡ Bolt: Optimize getVisibleTasks with O(1) Map lookup - #47

Closed
seonghobae wants to merge 1 commit into
mainfrom
bolt-optimize-getVisibleTasks-13550940238100569134
Closed

seonghobae wants to merge 1 commit into
mainfrom
bolt-optimize-getVisibleTasks-13550940238100569134

Conversation

@seonghobae

Copy link
Copy Markdown
Contributor

💡 What: Replaced the O(N) findTask() array lookup with an O(1) Map lookup inside the getVisibleTasks() parent chain iteration loop.
🎯 Why: Filtering visible tasks triggers an O(N^2) operation because evaluating visibility traces up each task's ancestors, linearly scanning the entire tasks array for each ancestor. This change removes the bottleneck.
📊 Impact: Transforms a potentially expensive O(N^2) hierarchical filtering render operation into a fast O(N) operation, enabling smooth performance for much larger WBS datasets.
🔬 Measurement: Verify by executing e2e tests (npm run test:e2e) to ensure tree rendering correctly collapses and expands, and run tests via bash scripts/ci/test_strix_quick_gate.sh.


PR created automatically by Jules for task 13550940238100569134 started by @seonghobae

@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@coderabbitai

coderabbitai Bot commented Jun 6, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e8adbbc4-8ca5-46e8-b1b4-e22f778bddbd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bolt-optimize-getVisibleTasks-13550940238100569134
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch bolt-optimize-getVisibleTasks-13550940238100569134

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.


Comment @coderabbitai help to get the list of available commands and usage tips.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@seonghobae

Copy link
Copy Markdown
Contributor Author

이 PR의 변경은 현재 main에 머지된 대표 PR들(#26, #27, #28, #34, #35, #39, #40, #57, #72)에 의해 반영되었거나 더 최신 구현으로 대체되었습니다. 현재 head는 main과 충돌하고 남길 고유 변경이 없어 superseded 상태로 닫습니다.

@seonghobae seonghobae closed this Jun 15, 2026
@google-labs-jules

Copy link
Copy Markdown

이 PR의 변경은 현재 main에 머지된 대표 PR들(#26, #27, #28, #34, #35, #39, #40, #57, #72)에 의해 반영되었거나 더 최신 구현으로 대체되었습니다. 현재 head는 main과 충돌하고 남길 고유 변경이 없어 superseded 상태로 닫습니다.

Understood. Acknowledging that this work is now obsolete and stopping work on this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant