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?
The reason is that documents are built in
DocumentIdentityMap.getKey(String webappUrl)
This is done because the DocumentBuilder is the only entity which knows
how a URL is mapped to a document. Maybe this can be optimized.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]