Skip to content

⚡ Bolt: [성능 개선] 정적 CSS 및 해시 계산 단일화로 디렉토리 순회 성능 향상#185

Open
seonghobae wants to merge 4 commits into
masterfrom
bolt-optimize-css-hash-allocation-4896989515348970798
Open

⚡ Bolt: [성능 개선] 정적 CSS 및 해시 계산 단일화로 디렉토리 순회 성능 향상#185
seonghobae wants to merge 4 commits into
masterfrom
bolt-optimize-css-hash-allocation-4896989515348970798

Conversation

@seonghobae

Copy link
Copy Markdown
Collaborator

💡 What:
process_dir 내부에 있던 정적 CSS 문자열과 SHA-256 해시 계산을 private object CssConstants로 추출하여 애플리케이션 실행 시 단 한 번만 계산되도록 변경했습니다.

🎯 Why:
기존에는 디렉토리 트리를 순회할 때마다 매 디렉토리 단위로 큰 CSS 문자열 할당과 비싼 암호화 해시 연산(MessageDigest)이 반복되어 불필요한 CPU 및 메모리(GC) 오버헤드가 발생했습니다.

📊 Impact:
디렉토리 당 1회의 큰 문자열 할당과 해싱 비용이 제거되어 하위 디렉토리가 많은 환경에서 눈에 띄게 더 빠르고 안정적인 동작을 보여줄 것으로 예상됩니다.

🔬 Measurement:
벤치마크 혹은 프로파일링 도구를 통해 process_dir 반복 호출 시의 메모리 할당률 감소 및 전체 실행 시간을 측정하여 검증 가능합니다. 테스트 스위트 또한 100% 브랜치/라인 커버리지로 통과함을 확인했습니다.


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

process_dir 함수 내에서 매 디렉토리마다 반복적으로 생성되던 정적 CSS 내용과 SHA-256 해시 계산을 private object 인 CssConstants 로 추출하여 불필요한 문자열 할당과 연산 비용을 제거함.
@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.

process_dir 함수 내에서 매 디렉토리마다 반복적으로 생성되던 정적 CSS 내용과 SHA-256 해시 계산을 private object 인 CssConstants 로 추출하여 불필요한 문자열 할당과 연산 비용을 제거함.
process_dir 함수 내에서 매 디렉토리마다 반복적으로 생성되던 정적 CSS 내용과 SHA-256 해시 계산을 private object 인 CssConstants 로 추출하여 불필요한 문자열 할당과 연산 비용을 제거함.
process_dir 함수 내에서 매 디렉토리마다 반복적으로 생성되던 정적 CSS 내용과 SHA-256 해시 계산을 private object 인 CssConstants 로 추출하여 불필요한 문자열 할당과 연산 비용을 제거함.
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