CALL FOR:
OBJ2TYPE cache property. (ends Wed Feb 26 2003 09:45)

Called by:Nico Klasens
Total tally on this call : +8

YEA (9) : Marcel Maatkamp, David van Zeventer, Gerard van Enk, Wilbert Hengst, Michiel Meeuwissen, Rob Vermeulen, Pierre van Rooden, Rico Jansen, Rob van Maris

ABSTAIN (0) :

NAY (0) :

VETO (0) :

No votes, assumed abstained (6): Daniel Ockeloen, Eduard Witteveen, Mark Huijser, Johannes Verelst, Jaco de Groot, Kees Jongenburger

Call result:
Call succeeded, code can be changed.

Important: Obj2type variable name and scope should only be changed in the 1.7 branche - the 1.6 branche need use the old name and scope.


[EMAIL PROTECTED] wrote:
CALLS FOR: MMObjectBuilder OBJ2TYPE property and extra functions

Last week, I made a proposal to get rid of the "vpro" MMObjectBuilder, but
now is the time to get really rid of this code.
The differences with the mmbase MMObjectBuilder are a bigger objecttype
cache and some extra executeFunctions.

START OF CALL: Fri Feb 21 2003 09:45

END OF CALL: Wed Feb 26 2003 09:45


CALL FOR OBJ2TYPE cache property.


The OBJ2TYPE_MAX_SIZE is hardcoded in the MMObjectBuilder. Adding this
code will make it configurable.
----------- org.mmbase.module.core.MMObjectBuilder -----------
    /**
     * The cache that contains the last X types of all requested objects
     * replacement of object2type
     * The variable obj2type will be replaced by typeCache
     */
    private static Cache typeCache;

    static {
        typeCache = new Cache(OBJ2TYPE_MAX_SIZE) {
            public String getName()        { return "TypeCache"; }
            public String getDescription() { return "Cache for node types";}
        };
        typeCache.putCache();
    }
----------- config/caches.xml -----------
  <cache name="TypeCache">
    <status>active</status>
    <size>20000</size>
  </cache>
-----------

This change is for mmbase 1.6 and 1.7

-- Pierre van Rooden Mediapark, C 107 tel. +31 (0)35 6772815 "Never summon anything bigger than your head."




Reply via email to