Comments (2)
I think it's good idea to make pre-sort more pluggable -- at one point it was bit more prominently separate, but I simplified things. Might be good idea to go back, have a look, give user a choice. Especially given prominence of multi-CPU boxes.
After this, could perhaps consider parallelization of merge step too, although quite commonly it will be i/o bound I assume? But with SSDs, more complex handling (data-binding for in/out), not necessarily.
from java-merge-sort.
The comparison function may be expensive and so reducing the number of comparisons (e.g. with a log n PriorityQueue) is important.
Also, I think because external merge sort works with (parallel) sequential streams, I/O isn't necessarily the bottleneck even without SSDs. Rotational disks have good bandwidth on sequential I/O. With a standard 4+4 hardware RAID 10 disk array of rotational 10k RPM disk drives we see 500 MB/s seq reads and 500 MB/s seq writes, all for 100 parallel sequential streams.
(To get good perf with that many parallel streams we had to tune linux ext4 to do 16 MB block device read ahead via
/sbin/blockdev --setra 32768 /dev/mapper/vgskytide2-lvskytide2)
Wolfgang.
On Dec 11, 2011, at 9:56 AM, Tatu Saloranta wrote:
I think it's good idea to make pre-sort more pluggable -- at one point it was bit more prominently separate, but I simplified things. Might be good idea to go back, have a look, give user a choice. Especially given prominence of multi-CPU boxes.
After this, could perhaps consider parallelization of merge step too, although quite commonly it will be i/o bound I assume? But with SSDs, more complex handling (data-binding for in/out), not necessarily.
Reply to this email directly or view it on GitHub:
#2 (comment)
from java-merge-sort.
Related Issues (13)
- Add helper methods for calculating approximate object mem usage HOT 1
- loss data after sort HOT 1
- Long lines are corrupted when read by _readNextSlow HOT 4
- ENHANCEMENT: Performance ideas: pipelining and compression HOT 1
- Temp files that result from two-phase merge are not deleted HOT 1
- copyright clarity - license boilerplate issue HOT 1
- Increase JDK baseline from Java 6 to Java 8
- Use PriorityQueue for k-way merge (perf) HOT 10
- Possible 'overallocation' of memory HOT 5
- RawTextLineReader doesn't skip line feeds correctly on Windows HOT 1
- Sorter#_merge() not closing streams correctly. HOT 2
- Sort/Merge process that removes duplicates HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-merge-sort.