Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

textboards

Name: Anonymous 2007-06-05 17:49 ID:4Zp/Oh3P

I want to make my own textboard in C fastcgi using files instead of a sql database.
Does it sound like a good fast idea?

I just want it to be blazingly fast.

What do you think /prog/?

Name: derp 2013-01-13 14:40

no one answer or generalization is correct, ever.  for some chan sites, text files may be fine.  locking is not an issue, since two people don't need to write to the same file at the same time.  you can make the n+ faggots wait a few milliseconds.  this isn't some payrol application.  you might be surprised to find that they won't actually notice the difference in waiting from their own network latency.  if a {n} lock time passes, then fuck the fucking fuckers.  it is a chan site.  they can repost their faggy post.

Name: derp 2013-01-13 14:46

furthermore, each post within a thread could be a file with a unique extension.  your board software can reassemble them for the blah html output.  this avoids locking if you use {y} digits of microseconds.  these files only need to exist for new posts before the final html is unlocked.  ya you might need to use a filesystem like xfs or ext4 or some random b-tree religious crap.  I use a ram disk, works fine.  my web server uses about 25mb of ram even when half the /b/tards link to it.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List