Re:Persistence modules for the invesdwin-context module system
by prodigal_erik on Sunday September 04, 2016 @04:04PM
(#12426435)
Where does the speed advantage come from? Is it because LinkedBlockingQueue doesn't spin-wait before giving up and rescheduling the consumer's thread?
[ Parent
| on HN ]
Re:Persistence modules for the invesdwin-context module system
by gsubes on Sunday September 04, 2016 @04:24PM
(#12426524)
I am wondering about this myself, even SynchronousQueue (where the spin wait was taken from) is slower than Mapped Memory. Though ASpinWait spins a magnitude longer before sleeping, maybe that is the difference. Or the fact that Memory Mapping goes Off-Heap and instantiates no objects during transfer.