Webserv-project / Webserv

0 stars 2 forks source link

convUriToPath Refactoring #50

Open Jake1152 opened 1 year ago

Jake1152 commented 1 year ago

AS IS

convUriToPath(URI, PORT, file_path)

TO BE

convLocalPathToExistPath(local_path, PORT, file_path)

URI대신 local_path가 들어오므로 convUriToPath()내부에서 '/'위치 찾아서 local path만 잘라오는 루틴이 더 이상 필요없어짐 해당 라인 제거. 있어도 중복체크 및 결과 동작은 동일하겠지만 했던일 반복으로 메모리에 복제되는 비효율 발생

Jake1152 commented 1 year ago

평가 이후 변경 예정