Skip to content

⚡ Bolt: SessionTimelineChart 성능 향상#229

Open
seonghobae wants to merge 2 commits into
developmentalfrom
bolt-session-timeline-perf-fix-10798984426314495937
Open

⚡ Bolt: SessionTimelineChart 성능 향상#229
seonghobae wants to merge 2 commits into
developmentalfrom
bolt-session-timeline-perf-fix-10798984426314495937

Conversation

@seonghobae

Copy link
Copy Markdown

💡 What: session-timeline-chart.tsx에서 Recharts에 전달되는 chartDatauseMemo로 메모이제이션하고, 컴포넌트 렌더링 루프 바깥에서 new Date().getTime() 문자열 파싱 로직을 미리 계산하도록(pre-parsing) 최적화했습니다. 최적화 의도를 담은 주석도 추가했습니다.

🎯 Why: 기존 코드는 Recharts 차트의 상호작용 및 리렌더링 과정 중 발생하는 O(N x M) 중첩 루프 내에서 무거운 Date 생성과 getTime() 호출을 반복 실행하여, 데이터가 많아질 경우 심각한 메인 스레드 블로킹과 버벅임(bottleneck)을 유발했습니다.

📊 Impact:

  • O(N x M) 스케일의 반복적인 Date 파싱 오버헤드를 O(N + M) 1회 수행으로 단축.
  • Recharts의 data 참조(reference)가 메모이제이션되어 불필요한 차트 DOM 재계산 및 렌더링 최소화.

🔬 Measurement:

  • 변경 후 pnpm test 통과 확인.
  • Playwright를 사용해 임시 라우트(/test-ux-component)에서 UI의 정상 표출을 교차 검증 완료.

PR created automatically by Jules for task 10798984426314495937 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.

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