참고 : http://www.codeproject.com/Articles/27487/Why-to-use-memory-pool-and-how-to-implement-it

 

사용해야 하는 이유 

1. 메모리 할당하는 시간이 짧다.

 

memory pool 사용 안 했을 시

 


 

(Intel 3.0G Hz CPU / 512 MB of RAM / Win XP SP2 / VC6.0) 기준 결과값 

 

Interval = 8735ms

 

memory pool 사용시


 

 

Interval = 391 ms

 

2. 단편화 문제를 줄일 수 있다. 

 

적합한 예제를 찾지 못했다 ㅠㅠ


Test 결과






'Programmer의 텅빈 공간 > C/C++' 카테고리의 다른 글

visual studio 단축키 정리  (0) 2015.08.04
singleton  (0) 2014.05.06
non-mfc에서 TRACE, ASSERT 사용  (0) 2014.05.06
메모리 풀이란 ?  (0) 2014.05.06
메모리 누수체크  (0) 2014.05.06

+ Recent posts