From: Brian D. <do...@co...> - 2011-10-13 14:56:34
|
Ok, not too hard, I've added some basic caching of the map file to gxwmap.c. The changes are all isolated to gxwmap.c for now. I kinda did this quick so I haven't done a whole lot of testing on it. The cache lasts for the entire grads session. I don't think this hurts performance any for those cases when grads is just being run to do one plot. This mod is applied to the gxwmap.c from the 2.0.0 code base -- but we will not include it in 2.0; it will be included in 2.1. Right now the CACHEMAX is set to 2MB which will cache lowres, mres, and hires. If you have your own map files that are larger, you may want to increase the CACHEMAX value. This will have no affect on shapefile usage. Gary, I'm not really sure this will help your situation; it will depend on your system environment. Arlindo's suggestion to set up some system-wide solution like a ramdisk may be more along the lines of what you need... Brian |