Commit 24cb7dc
committed
Speed up constant database creation
There is no need to sync to disk every time a record is added, because
in a constant database records are only added at database creation time,
and the database is created in a temp file before being moved to the
final file. A sync is only needed once after all records have been
added. Further force-output is not a sync because it returns before
completion. finish-output is a sync (to the extent that Common Lisp
offers one).
With this patch, my systems.cdb gets created in 0.6 seconds instead of
44 seconds.1 parent d601e0d commit 24cb7dc
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
267 | 266 | | |
268 | 267 | | |
269 | 268 | | |
| |||
306 | 305 | | |
307 | 306 | | |
308 | 307 | | |
309 | | - | |
| 308 | + | |
310 | 309 | | |
311 | 310 | | |
312 | 311 | | |
| |||
0 commit comments