You are viewing a single thread.
View all comments View context
4 points

Persist everything to disk in real time. When the signal hits exit immediately.

permalink
report
parent
reply
7 points

Persist everything to disk in real time.

That’s the thing I’m trying to avoid.

permalink
report
parent
reply
1 point

Admittedly it’s very difficult if you want to maintain consistency but the benefits are enormous!

permalink
report
parent
reply
3 points
*

Easier to do than to get never-exercised edge-case code to work flawlessly. Are you sure you can’t just throw sqlite at the problem? It’s often overkill but, hey, it’s there on the shelf, might as well use it and I’ve seen it out-perform hand-rolled data structures. Non-persistent ones, written by very confident C coders. And remember crashes are unavoidable, if nothing else then someone can trip over the power cord.

permalink
report
parent
reply
2 points
*

You can’t know that from my issue description, but throwing a database at that problem really is ridiculous overkill.

Still thanks for the suggestion

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.8K

    Monthly active users

  • 1.1K

    Posts

  • 39K

    Comments