Hi.. On Tue, Apr 16, 2002 at 11:20:11AM +0900, MATSUMOTO Masakazu wrote: > 1. cache is initialized only once when app is started, but i think it > should rather be initialized when document is changed, because > "reference" value points to different thing on different document.
Yeah.. funny that :). The patch I sent out is very perliminary. Last night I coded a more intellgent caching mechanism which basically resets the cache each time a new doc is loaded. Becuase of the limited memory space on the palm, it would be too much to keep the cache active across multiple docs. New patch at... http://www.array.org/~adamm/plucker/plucker_cache_v2.patch Plus I added some comments, so now it makes sence :) > 2. How do you think the optimal cache size and optimal algorithm to > update cache entries? Do you think LRU makes better than current FIFO > method? I would agree. The trouble in 'Least Recently Used' is that it could add a bit more overhead to loading/adding data that would make the cache pointless. I'm guessing this, I havn't actually tested anything like that yet. If you want to give it a shot and run a couple benchmarks that would be helpful. Personally I would prefer the FIFO becuase it's less work for the palm, and I'm just trying to keep it simple. > Anyway I will apply this patch to i18n branch and test. > Thank you for your good idea! I've so far tested this on the sony branch and everything worked as expected. What exactly is the i18n branch for, anyways? -- Adam McDaniel Array Networks Calgary, AB, Canada
