brunch

You can make anything
by writing

C.S.Lewis

by 김선우 Jun 14. 2016

Arrays.sort, parallelSort 차이

스택오버플로우에 있는 답변이다. 

병렬소팅은 스레드를 사용하여 대량의 데이터 처리시에 더욱 효과적이란다.


Parallel sort uses threading. It's faster when there are a lot of elements. The overhead for parallelization becomes tolerably small on larger arrays, but it is too big for smaller ones.

Take a look at this table (of course, the results depend on the CPU, etc):





답변 : http://stackoverflow.com/questions/17328077/difference-between-arrays-sort-and-arrays-parallelsort



작가의 이전글 JVM 메모리 구조

작품 선택

키워드 선택 0 / 3 0

댓글여부

afliean
브런치는 최신 브라우저에 최적화 되어있습니다. IE chrome safari