Central Repository
Login to reply to this topic.
Mon, 2008-11-24 12:53
Joined: 2008-11-11
Forum posts: 6

Hi,
can sombody tell me what is the use of central repository and when should I use it? Where it stores the data in RAM or somewhere else? How it is different from stroing in files?


Mon, 2008-12-01 09:46
Joined: 2004-11-29
Forum posts: 1419

Central repository is a server process keeping track of various settings.
You can think of it a bit like the registry in windows.
It will save any values you set in a file, so it can be restored on restart of the phone (persistent storage) but it will cache them in ram while the phone is running.
The overhead of reading and writing them is an IPC call and an extra copy to copy the data into the address space of your process.

CenRep is a bit like P&S but with persistence over reboots, and no real-time guarantee (afaik)

CenRep is useful when you need to share small amounts of data (like settings) between processes, or save settings that should be kept when re-installing I guess (but don't misuse it! small amounts of data only! and no, it wont be very useful for anti-piracy, you can just reset your phone to wipe it)

How this is different from files should be obvious I hope.


copyright 2003-2009 NewLC SARL