Skip to content

Conversation

@frombunny
Copy link
Member

@frombunny frombunny commented Aug 23, 2025

🔍 관련 이슈


✅ 작업 분류

  • 버그 수정
  • 신규 기능
  • 프로젝트 구조 변경
  • 코드 리팩토링
  • 기능 수정

✨ 작업 내용

  1. evaluate_items에서 배치 처리로 변경
  2. python:3.11 slim -> full 변경
  3. 스레드 수 조정
  4. 벡터화 딕셔너리 캐시 사용

✅ 체크리스트

  • 코드가 컴파일 및 빌드됨
  • 모든 테스트가 통과함
  • 관련 문서가 업데이트됨
  • 코드 리뷰가 수행됨
  • 커밋 메시지를 확인함

📸 스크린샷

  • [1차 개선] 5.93s -> 3.60s로 개선 (약 40% 개선)
    (linear_kernel 사용, python:3.11 full 사용, 스레드 수 조정, 벡터화 딕셔너리 캐시 사용, evaluate_items에서 배치 처리)
image
  • [2차 개선] 3.60s -> 0.83ms로 개선 (약 67% 개선)
    (ebs 볼륨 확장, dict → numpy 변환을 서버 시작 시 전처리해서 캐시, match_top1을 Faiss/HNSlib 기반 ANN 검색으로 변경)
스크린샷 2025-08-23 오후 10 21 27

@frombunny frombunny self-assigned this Aug 23, 2025
@frombunny frombunny added the ⚡ perf This issue or pull request already exists label Aug 23, 2025
@frombunny frombunny merged commit 1147674 into main Aug 24, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚡ perf This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

⚡ perf: 컨셉별 추천 API 속도 개선

2 participants