-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A person joined Discord reporting they traced Nebari and didn't see any explicit fsync operations. I was incredulous, but discovered that File::flush() is a no-op. Switching to sync_data on my Linux development machine caused no performance changes. On Mac, however, that's a different story. The comments in the SQLite benchmarks explain why. For the Roots type, where multiple files need to be flushed, an F_BARRIERFSYNC on each file, then an F_FULLFSYNC might be a faster way to flush multiple trees on Mac OS. However, any changes other than this simple change will involve extra dependencies or unsafe code, so I'm living with this downgrade in performance on Mac for now. Both Nebari and SQLite suffer on Mac OS with F_FULLFSYNC, but Nebari suffers *more* than SQLite. I am hopeful that there might be performance left on the table that could improve Nebari on all platforms.
- Loading branch information
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters