9. 최적화와 성능
2024년 12월 17일1분 미만
9. 최적화와 성능
9.1 성능 최적화 기법
functools.lru_cache:- 메모이제이션과 성능 최적화.
- 캐시 관리 (
cache_clear).
timeit모듈로 코드 실행 시간 측정.cProfile,line_profiler로 성능 분석.
9.2 메모리 관리
- Python의 가비지 컬렉션(
gc). - 객체 참조와 메모리 누수 방지.
functools.lru_cache: cache_clear).timeit 모듈로 코드 실행 시간 측정.cProfile, line_profiler로 성능 분석.gc).