byte1 byte-compiled code - python compiler가 사용하는 byte-compiled code는 표준모듈을 많이 사용하는 프로그램의 로딩시간을 줄여준다 -O flag를 사용하여 인터프리터를 호출하면 최적화된 코드가 생성되어 .pyc 파일에 저장된다 라이브러리로 배포하는 데에도 사용할 수 있다 $ python -O file.py $ ls file.py file.pyc $ python -h ... 생략 ... -O : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x -OO : remove doc-strings in addition to the -O optimizations ... 생략 ... 2020. 9. 22. 이전 1 다음