Repository navigation
Commit 8f53d6d
committed
perf(server): checkpoints flush new files to disk once per command instead of once per file
Checkpoint writes pass core.fsyncMethod=fsync, so `git add` does a full
flush for every new object. Capturing a checkpoint with 1,500 new files
took about 8 s on Linux (ext4 on NVMe), and `git add` of 500 new files
took 2.6 s on an APFS Mac. Batch mode writes the objects out, issues one
full flush, and only then moves them into place, so they are just as
durable once they are visible. Refs still get a full flush each.1 parent d8e9fd2 commit 8f53d6d
2 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1167 | 1167 | | |
1168 | 1168 | | |
1169 | 1169 | | |
1170 | | - | |
| 1170 | + | |
1171 | 1171 | | |
1172 | 1172 | | |
1173 | 1173 | | |
| |||
1179 | 1179 | | |
1180 | 1180 | | |
1181 | 1181 | | |
1182 | | - | |
| 1182 | + | |
1183 | 1183 | | |
1184 | 1184 | | |
1185 | 1185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
787 | 790 | | |
788 | 791 | | |
789 | 792 | | |
790 | 793 | | |
791 | | - | |
| 794 | + | |
792 | 795 | | |
793 | 796 | | |
794 | 797 | | |
| |||
0 commit comments