Use the windows hi-rez timer

This commit is contained in:
Robinson 2023-02-25 10:21:47 +01:00
parent 9969dcd9b8
commit b65005828c
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C

View File

@ -39,6 +39,7 @@ class AeronContext(
// driver context must happen in the initializer, because we have a Server.isRunning() method that uses the mediaDriverContext (without bind)
val mediaDriverContext = MediaDriver.Context()
.termBufferSparseFile(false) // files occupy the same space virtually AND physically!
.useWindowsHighResTimer(true)
.publicationReservedSessionIdLow(AeronDriver.RESERVED_SESSION_ID_LOW)
.publicationReservedSessionIdHigh(AeronDriver.RESERVED_SESSION_ID_HIGH)