r2 - 28 Aug 2006 - 11:22:17 - TravisVachonYou are here: OSAF >  Journal Web  >  ContributorNotes > TravisVachonNotes > ChandlerPysizerConclusions20060825
  • chandler/repository/persistence/DBRef.py:32 creates scads and scads of empty dictionaries. Could these be created lazily (that is, only when they need to have something in them?)

    While empty dictionaries don't seem like such a big deal, we have 20854 of them sitting around at startup time with rc --create --nocatch. This means they consume 2+M of RAM, a number which will likely rise as the number of Items in chandler goes up.

  • This effect is lessened when we do not need to create the repository ( rc --nocatch ). It seems to me, however, that creating these dictionaries lazily could actually improve load time performance considerably, as we would not need to do thousands of dictionary creations.

  • These could be rather uninformed conclusions, comments welcome.

-- TravisVachon - 25 Aug 2006

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Open Source Applications Foundation
Except where otherwise noted, this site and its content are licensed by OSAF under an Creative Commons License, Attribution Only 3.0.
See list of page contributors for attributions.