[Freevo-devel] kaa.vfs

2005-11-20 Thread Dirk Meyer
Hi, those who read the cvslog list know that I have some problems with threading in the kaa.vfs module. After some thinking, maybe using a thread isn't such a good idea. I used a thread because a reader can block when the writer writes the db and the writer can block when there are still readers.

Re: [Freevo-devel] kaa.vfs benchmarks

2005-10-31 Thread Jason Tackaberry
On Sun, 2005-10-30 at 10:47 +0100, Dirk Meyer wrote: > files. It crashed in the ipc code. The code wants to send the whole Can you show a traceback? > data on a non blocking socket. Tack: read the help doc: either > everything is send or nothing, even for non blocking sockets. As a > result, you

[Freevo-devel] kaa.vfs benchmarks

2005-10-30 Thread Dirk Meyer
Hi I did some testing with a vfs based on a sqlite db and kaa.ipc. The first one is ok, the second one makes trouble. First test: The old mediadb code needs 0.09 seconds for the whole operation. This includes reading the pickle file, checking the directory and the overlay directory for updates a

[Freevo-devel] kaa.vfs module added

2005-08-22 Thread Jason Tackaberry
I created kaa/vfs and added to vfs/src/db.py a cleaned up version of what I emailed here yesterday. See test/testdb.py for a demo. The main change I made to the code was removing the whole notion of directories. Instead, everything is an object, and any object can be a parent of any other object