ScriptInterpreter cache for domobjects (dangerous change?)
David Faure
faure@kde.org
Fri, 10 Jan 2003 10:43:59 +0100
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday 10 January 2003 00:47, David Faure wrote:
> Now the whole domObjectPerDocument stuff also makes sense to me :)
I just had a thought about this:
why not store the (KJS::DOMNode->Dom::Node) dict in the KJS::DOMDocument,
instead of storing a dict of dicts in the more global scriptinterpreter?
This sounds more object-oriented than the "dict of dicts" to me, and possib=
ly=20
faster too, at least in the cases where we already have to find out the
KJS::DOMDocument anyway. (In other cases it's equivalent, 2 dict lookups
in both cases).
What do you think?
=2D --=20
David FAURE, faure@kde.org, dfaure@klaralvdalens-datakonsult.se
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2.1 is available - http://download.kde.org/stable/koffice-1.2.1/
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+HpXf72KcVAmwbhARAo7ZAKCxjBPIsOrhidNuBArHAFjzdFYd3gCdFP+y
ygJTT497h76okg/V1ujV7ak=3D
=3DArsY
=2D----END PGP SIGNATURE-----