joncrlsn / dque

dque is a fast, embedded, durable queue for Go
MIT License
767 stars 46 forks source link

Code and tests for turbo mode #1

Closed joncrlsn closed 6 years ago

joncrlsn commented 6 years ago

Added a feature I call "turbo" mode, which allows the OS to decide when to sync changes to disk instead of forcing every write to disk immediately. Turbo mode on my machine is about 10 times faster than the default "safe" mode.

joncrlsn commented 6 years ago

This branch had some breaking changes which have been merged into the v2 branch instead of the originally intended v1 branch.