blosc – memcpy 보다 빠른 메모리 read/write

메모리에 대한 접근이 워낙 느리니 캐쉬와 압축을 이용해서 memcpy 보다 더 빠르게 하는 기술도 있군요.

blosc.org
Sending Data from Memory to CPU (and back) Faster than Memcpy by Francesc Alted
Why Modern CPUs Are stArving And WhAt CAn Be done ABoUt it

모든 경우가 더 빠르지는 않겠지만 benchmark 테스트 결과를 보면 압도적으로 빠른 경우도 꽤 있네요.

코드를 보니 압축알고리즘이 들어가서 분석이 만만치는 않은데 테스트는 해볼만할 것 같습니다.
blosc 사이트에서 코드를 다운로드받아보면 bench 라는 디렉토리가 있는데 이를 이용하면 됩니다.

You may also like...

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x