On Thursday 11 December 2008 06:31, j16sdiz at freenetproject.org wrote:
> Author: j16sdiz
> Date: 2008-12-11 06:31:56 +0000 (Thu, 11 Dec 2008)
> New Revision: 24192
> 
> Modified:
>    trunk/plugins/XMLSpider/XMLSpider.java
> Log:
> performance tuning - callConstructors(true) for Page

Ummmm.... what? Is this optimisation documented anywhere? Why would not 
calling the constructor be slower?
> 
> Modified: trunk/plugins/XMLSpider/XMLSpider.java
> ===================================================================
> --- trunk/plugins/XMLSpider/XMLSpider.java    2008-12-11 02:33:53 UTC (rev 
24191)
> +++ trunk/plugins/XMLSpider/XMLSpider.java    2008-12-11 06:31:56 UTC (rev 
24192)
> @@ -105,6 +105,8 @@
>               /** Comment, for debugging */
>               String comment;
>  
> +             public Page() {}        // for db4o callConstructors(true)
> +
>               @Override
>               public int hashCode() {
>                       return (int) (id ^ (id >>> 32));
> @@ -1428,6 +1430,8 @@
>               cfg.objectClass(Page.class).objectField("status").indexed(true);
>               
> cfg.objectClass(Page.class).objectField("lastChange").indexed(true);          
>   
>  
> +             cfg.objectClass(Page.class).callConstructors(true);
> +
>               cfg.objectClass(Page.class).cascadeOnActivate(true);
>               cfg.objectClass(Page.class).cascadeOnUpdate(true);
>               cfg.objectClass(Page.class).cascadeOnDelete(true);
> 
> _______________________________________________
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20081211/e3ebf3c2/attachment.pgp>

Reply via email to