-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
과정
-
line profiler로 오래 걸리는 로직 찾기
1.1 main 에 @profiile 붙이기
students = create_test_data(),manager.process_student_data()가 느림을 확인
create_test_data 는 최적화 어려움 process_student_data는 리스트 n번 탐색을 매번 함.

1.2 process_student_data 에 @Profile 붙여서 확인
process_student_data에서 쓰는 self.students를 list-> dict 개선해 O(n) -> O(1)로 개선
0.061732 s -> 0.003283 s
Metadata
Metadata
Assignees
Labels
No labels
