Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 0.5.8
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
When I run Ohai and return all attributes, it takes about 2 seconds:
$ time ohai > /dev/null real 0m2.061s user 0m1.540s sys 0m0.710s
It ought to take much less time to calculate the json for only a single attribute, but it doesn't:
$ time ohai filesystem > /dev/null real 0m2.016s user 0m1.580s sys 0m0.620s
It appears as if Ohai is executing all code and then filtering it down to only display the requested attribute. If this is the case, shouldn't it be possible to avoid executing code for unwanted attributes, thus speeding up Ohai in this case?
Activity
| Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
|---|---|---|---|---|---|---|---|---|---|
|
251d 19h 6m | 1 | Toomas Pelberg | 02/Aug/11 9:54 AM | |||||
|
26d 23h 18m | 1 | Toomas Pelberg | 29/Aug/11 3:39 PM | |||||
|
2d 9h 22m | 2 | Seth Chisamore | 31/Aug/11 6:35 PM | |||||
|
558d 6h 24m | 1 | Bryan McLellan [Opscode] | 12/Mar/13 12:59 AM |