AI/python

cache화를 통한 속도 향상

bitpoint 2024. 3. 9. 17:27
import functools

 

*가장 최근의 한개의 연산을 저장

@functools.lru_cache(1)
def getCandidateInfoList(requireOnDisk_bool=True):
 

 

 

 

'AI > python' 카테고리의 다른 글

string.punctuation  (2) 2024.03.23
python 배열, 리스트 등에서 마지막 콤마의 의미  (0) 2024.03.23
{조건}[value]  (0) 2024.03.07
행렬의 내적 외적  (0) 2024.02.21
python의 배열, 리스트, 튜플, 딕셔너리  (0) 2024.02.21