누구나 apc_define_constants 또는 hidef vs define을 사용했습니다. 최신 버전의 모든 실질적인 이점 또는 가능한 버그?apc_define_constants 대 hidef 대 정의
APC-정의 - 상수 - http://us2.php.net/manual/en/function.apc-define-constants.php
hidef - http://pecl.php.net/package/hidef
누구나 apc_define_constants 또는 hidef vs define을 사용했습니다. 최신 버전의 모든 실질적인 이점 또는 가능한 버그?apc_define_constants 대 hidef 대 정의
APC-정의 - 상수 - http://us2.php.net/manual/en/function.apc-define-constants.php
hidef - http://pecl.php.net/package/hidef
내가 꽤 어떤 문제없이 apc_define_constants
를 사용했습니다 - 나는 때문에 '알파'상태의 hidef 한 번도 안 써봤.
나는 이것이 oldy이지만, 두 SO의 자체 검색 엔진에서 높은 나타나고 구글부터 알고 영업 언급 된 방법의 상대적 성능에 대한 좋은 문서는 여기에서 찾아보실 수 있습니다 : http://shwup.blogspot.com/2010/04/about-constants.html
우리는 hidef를 프로덕션 환경에서 3 년 동안 사용해 왔으며, hidef ini 파일의 변덕에 익숙해지고 hidef에서 배열을 정의하면 사용하기가 굉장하고 안정적이며 사용하기 쉽습니다.
그러나 측정 가능한 성능 향상을 제공합니까? – David
나를 위해서는 아니지만, define()은 결코 내 병목이되지 않았습니다. – TML