Michael Droettboom wrote: > My suspicion from looking at the code was that a great deal of time was spent statting all the font files at start up. FontManager.__init__ goes through all the files in the cache to determine if they still exist and refreshes the cache if it finds one missing. Your patch (if I understand pickling correctly) is bypassing all those checks, which I think is generally a good thing. > > However, now findfont has the potential to return a path to a file that no longer exists. findfont should probably be wrapped in a function that will check the result, and if the path doesn't exist, rebuild the cache and then perform the query again.
Done and committed. Eric > Cheers, > Mike ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel