Skip to content

⚡ Bolt: HexFormat를 사용한 16진수 문자열 변환 성능 최적화#98

Closed
seonghobae wants to merge 1 commit into
mainfrom
bolt-hexformat-optimization-13974204209247096600
Closed

⚡ Bolt: HexFormat를 사용한 16진수 문자열 변환 성능 최적화#98
seonghobae wants to merge 1 commit into
mainfrom
bolt-hexformat-optimization-13974204209247096600

Conversation

@seonghobae

Copy link
Copy Markdown
Collaborator

💡 What: String.format을 루프 내에서 사용하는 바이트 배열-16진수 문자열 변환 로직을 Java 17+의 java.util.HexFormat.of().formatHex()로 교체했습니다.
🎯 Why: String.format은 포맷 문자열 파싱, 정규식 검사 및 루프 내 높은 객체 할당으로 인해 상대적으로 속도가 느립니다. 반면 HexFormat은 이 작업에 특별히 최적화되어 있어 훨씬 빠르고 메모리 효율적입니다.
📊 Impact: 파일 해싱(SHA-256) 작업 시 문자열 변환 성능이 눈에 띄게 향상되며, 객체 할당(GC 부하)을 크게 줄입니다.
🔬 Measurement: 수정한 두 서비스(DefaultDocumentConversionService.java, ArtifactLinkService.java)의 코드가 정상 작동하며, mvn test를 통해 기존 기능에 부작용이 없음을 확인했습니다.


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

`String.format`을 루프 안에서 사용하여 바이트 배열을 16진수 문자열로 변환하는 비효율적인 방식을 `java.util.HexFormat.of().formatHex()`를 사용하는 방식으로 변경하여 성능을 개선했습니다.
@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.

@seonghobae

Copy link
Copy Markdown
Collaborator Author

중복 정리: 이 PR은 'HexFormat hex 변환 최적화' 클러스터의 중복입니다. 정본으로 #80 (APPROVED + CI green + MERGEABLE)을 유지합니다. 동일 파일을 수정해 동시 병합이 불가능하므로 정리합니다. 고유하게 필요한 변경이 있으면 #80에 반영하거나 재오픈하세요.

@seonghobae seonghobae closed this Jul 7, 2026
@google-labs-jules

Copy link
Copy Markdown

중복 정리: 이 PR은 'HexFormat hex 변환 최적화' 클러스터의 중복입니다. 정본으로 #80 (APPROVED + CI green + MERGEABLE)을 유지합니다. 동일 파일을 수정해 동시 병합이 불가능하므로 정리합니다. 고유하게 필요한 변경이 있으면 #80에 반영하거나 재오픈하세요.

알겠습니다. 이 PR이 중복임을 확인하였으며, 더 이상 이 작업에 대한 진행을 하지 않겠습니다.

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