RSS Feeds

Previous entries

Tpserver-cpp passes 10000 lines, and has full persistence

Posted 2005-12-12-0202

A few days ago, tpserver-cpp past the 10k sloc mark. It is the biggest solo application I have done. It is huge, but fairly well designed and flexible. Hope that more people will help in future. There is lots of little improvements and refactorisation to be done.

The main reason for the large increase in lines was the adding of Persistences to the server. Tpserver-cpp can now be shut down and restarted again without losing any information. This is done through a number of managers (a terible name I know, cache would be better). The are caches and only load from the Persistence when needed.

Persistence is an interface, that allows different back ends to be developed and used. The first on is a null implementation in Persistence itself that doesn't do anything, and means that everything must be kept in memory. The second is a MySQL backend that is fairly basic, but works fine.

I will probably do a release of it soon. Then add either resources, or start on MTSec.