Hi Tom, > 2. getFU() and deleteFU() were looping over the mappings structure looking > for a match. deleteFU() would actually loop over the mappings once for each > domain. Instead of looping over the mappings, getFU() now uses > structFindValue() and deleteFU() now uses structFindKey(). To gauge the > efficiency of the code I created static list of 741 random dmNavigation > objectId from my Db. I ran this list against application.factory.oFU.getFU() > as I made changes. Before the changes it took 162778ms to run the list. > After the changes were complete it took only 2969ms to run the same list.
I submitted a new FU function a couple of months ago called getFUstruct() which returns a structure of all FUs, keyed by objectid. Easy to then chuck the structure into the app scope and MUCH faster than looping over getFU(). Not sure it's it's been added to the core yet but if so, you might be able to use it if you don't want to modify the core files at the mo. Cheers Tim --- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
