phyllisstein / alp

A Python module for Alfred v2 workflows
174 stars 11 forks source link

Avoid redundant reads of info.plist #12

Closed cjlucas closed 11 years ago

cjlucas commented 11 years ago

use a singleton so the file is only read once.

Before, info.plist was read from disk every time core.bundle() was called. Which could be a lot depending on the number of Item instances created.

I saw about a 250% improvement in execution time with my workflow.

phyllisstein commented 11 years ago

Great idea!