News for hackers. Stuff that matters.
Re:Show HN: Bike – macOS Native Outliner by yes_but_no on Tuesday May 17, 2022 @07:04PM (#31417277)
When apps use text based single file as data source are they flushing the whole file when user makes an update?

If I add or move a line does Bike rewrites the whole file and updates the in-mem sorted-dict op mentioned?

Re:Show HN: Bike – macOS Native Outliner by jessegrosjean on Wednesday May 18, 2022 @07:41AM (#31421536)
For saving to disk yes, but not on every keystroke. An autosave is scheduled and then the save is performed after some period of time. The underlying scheduling and behavior is provided by macOS framework code.

If you add a line then rows after it in the array get shifted.