Andreas Hartmann wrote:
Josias Thoeny wrote:

Hi,

Just noticed that for each request for a document in lenya-trunk, the
DefaultDocument class gets instantiated about 300 times (put some debug
output into the constructor to see it).
Could the DocumentBuilder somehow use the DocumentIdentityMap to prevent
multiple document instantiation?
Or might that lead to problems, e.g. with synchronization if multiple
threads access the same document simultaneously?


I guess that the main reason for this behaviour is that the preconditions
are verified for all usecases which are available in the menubar.

I found out that this is not true. There is a bug somewhere, documents seem
to be instanciated multiple times for the same repository session.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to