Skip to content

⚡ Bolt: 정규식 사전 컴파일을 통한 파싱 성능 최적화#380

Open
seonghobae wants to merge 1 commit into
mainfrom
bolt-regex-precompile-17843440529708631255
Open

⚡ Bolt: 정규식 사전 컴파일을 통한 파싱 성능 최적화#380
seonghobae wants to merge 1 commit into
mainfrom
bolt-regex-precompile-17843440529708631255

Conversation

@seonghobae

Copy link
Copy Markdown
Contributor

💡 What: scripts/ci/validate_opencode_failed_check_review.sh의 인라인 파이썬 코드(cleanstarts_new_field 함수)와 scripts/ci/opencode_review_normalize_output.py(changed_files_from_evidence 함수)에서 반복적으로 호출되는 정규 표현식(re.sub, re.match)을 모듈 레벨에서 미리 컴파일(re.compile)하도록 수정했습니다.
🎯 Why: 루프 내부 또는 자주 호출되는 함수 내에서 re.sub(pattern, ...)을 사용하면 텍스트 라인마다 정규식을 재컴파일(또는 캐시 조회)하는 오버헤드가 발생하여 대량의 CI 리뷰 텍스트 파싱 시 병목이 됩니다.
📊 Impact: 문자열 치환 및 매칭 성능이 최적화되어 CI 스크립트의 대규모 로그/문서 파싱 속도가 향상됩니다.
🔬 Measurement: 스크립트 실행 시간 단축. 100% 테스트 커버리지 유지 및 bash scripts/ci/test_opencode_fact_gate_contract.sh 통과 확인 완료.


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