<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Halve Kolab&#039;s Freebusy memory usage</title> 
  <pubDate>Thu, 09 Apr 2026 12:39:02 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/6403</link> 
  <atom:link rel="self" type="application/rss+xml" title="Halve Kolab&#039;s Freebusy memory usage" href="https://bugs.horde.org/ticket/6403/rss" /> 
  <description>Halve Kolab&#039;s Freebusy memory usage</description> 
 
   
   
  <item> 
   <title>Hello together,



attached patch almost halves Kolab&#039;s free</title> 
   <description>Hello together,



attached patch almost halves Kolab&#039;s freebusy memory usage.

10.000 events now use 25mb instead of 44mb.



I also experimented with splitting &quot;$objects = store-&gt;getObjects()&quot;

into &quot;$ids = store-&gt;getObjectIds(); foreach($object = store-&gt;getObjectById())&quot;

but it turned out to be slower and PHP5 seems to implement

copy-on-write as it didn&#039;t make a difference from a memory usage point of view.



I did some whitespace cleanup while I was at it...



Cheers,

Thomas



PS: I almost queued this one for the framework package again ;-)

</description> 
   <pubDate>Sat, 08 Mar 2008 09:28:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6403#t43571</link> 
  </item> 
   
  <item> 
   <title>This could probably be further optimized not using a foreach</title> 
   <description>This could probably be further optimized not using a foreach loop at all: http://www.horde.org/horde/docs/?f=CODING_STANDARDS.html#loops</description> 
   <pubDate>Sat, 08 Mar 2008 12:13:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6403#t43572</link> 
  </item> 
   
  <item> 
   <title>&gt; Hello together,

&gt;

&gt; attached patch almost halves Kolab&#039;s</title> 
   <description>&gt; Hello together,

&gt;

&gt; attached patch almost halves Kolab&#039;s freebusy memory usage.

&gt; 10.000 events now use 25mb instead of 44mb.



Makes sense. Thanks! In CVS.



I didn&#039;t trace this stuff before so now that I looked at it I&#039;d like to suggest the attached patch in addition to your fix. Can you check it on your side?



There is probably more potential to get the thing less memory/cpu time hungry.



&gt;

&gt; I also experimented with splitting &quot;$objects = store-&gt;getObjects()&quot;

&gt; into &quot;$ids = store-&gt;getObjectIds(); foreach($object = 

&gt; store-&gt;getObjectById())&quot;

&gt; but it turned out to be slower and PHP5 seems to implement

&gt; copy-on-write as it didn&#039;t make a difference from a memory usage 

&gt; point of view.

&gt;

&gt; I did some whitespace cleanup while I was at it...

&gt;

&gt; Cheers,

&gt; Thomas

&gt;

&gt; PS: I almost queued this one for the framework package again ;-)

&gt;

</description> 
   <pubDate>Tue, 11 Mar 2008 10:23:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6403#t43699</link> 
  </item> 
   
  <item> 
   <title>&gt; I didn&#039;t trace this stuff before so now that I looked at i</title> 
   <description>&gt; I didn&#039;t trace this stuff before so now that I looked at it I&#039;d like 

&gt; to suggest the attached patch in addition to your fix. Can you check 

&gt; it on your side?



Wow, I first thought your change wouldn&#039;t make much difference but now it takes only 0.983s instead of 2.340s for 10.000 events on a P4 3 GHz :-) Yeah.

</description> 
   <pubDate>Tue, 11 Mar 2008 15:32:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6403#t43709</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; I didn&#039;t trace this stuff before so now that I looked at </title> 
   <description>&gt;&gt; I didn&#039;t trace this stuff before so now that I looked at it I&#039;d like

&gt;&gt; to suggest the attached patch in addition to your fix. Can you check

&gt;&gt; it on your side?

&gt;

&gt; Wow, I first thought your change wouldn&#039;t make much difference but 

&gt; now it takes only 0.983s instead of 2.340s for 10.000 events on a P4 

&gt; 3 GHz :-) Yeah.

&gt;

Cool, thanks for testing. Closing this one then.</description> 
   <pubDate>Tue, 11 Mar 2008 17:04:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6403#t43714</link> 
  </item> 
   
  <item> 
   <title>in cvs</title> 
   <description>in cvs</description> 
   <pubDate>Tue, 11 Mar 2008 17:05:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/6403#t43715</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
