duckduckgo / zeroclickinfo-spice

DuckDuckGo Instant Answers based on JavaScript (JSON) APIs
https://duckduckhack.com/
Other
548 stars 942 forks source link

CodeSearch: `slurp` should be outside of the handle function #451

Closed jagtalon closed 10 years ago

jagtalon commented 10 years ago

We don't want to read the file every time the instant answer triggers. https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/CodeSearch.pm#L22

CC @kablamo

kablamo commented 10 years ago

Good point.