[fpc-pascal]using big files with high performance

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Thu Mar 25 20:40:56 CET 2004


On Thu, 25 Mar 2004, Christian M?llerke wrote:

> Hi!
> 
> Sorry for bad english, and, maybe this is a beginner question:
> 
> I'am trying to write my own small NNTP(Usenet)-daemon (experimental - just 
> want to increase my knowledge).
> 
> What whould be the best method for storing articles in files divided by group 
> (one group, one file)? I want a good performance, ram usage should be small. 
> 
> Is BerkeleyDB a solution? Or writing file-access with streams and a 
> index-file? Next problem would be the locking of files (can BDB handle this 
> for me?).
> 
> I'am using Linux and FreeBSD. Never programmed software for big files with 
> locking before.

Berkely DB (or GNU DB) will take care of this for you. I'm not sure about
performance using big files, but I'm assuming this will not really be a
problem.

Michael.




More information about the fpc-pascal mailing list