> On May 5, 2015, at 2:21 PM, David Durkee <da...@dwdurkee.com> wrote:
> 
> 1) The first time the menu is opened, it takes as much as two seconds for it 
> to appear.

And it might take a lot longer than that, for a user with a lot of fonts 
installed. (I have nearly 2000.) It can also allocate a ton of RAM for glyph 
caches.

> Is there a way I can precache whatever it is that takes so long that first 
> time (the fonts I’m guessing)?

You could pre-render a sample of each font to an image, then save the image to 
a file or database keyed by the font name.

I'm not sure if it's possible to defer configuring a menu item until it's 
displayed, but if so that would speed things up a whole lot, since you'd only 
be displaying a few dozen fonts to start with.

—Jens
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to