theopolis
launchd which results in 7% less CPU: https://github.com/theopolis/osquery/commit/557acbff69c360eeb3b249a74aca7a8810e6fa19
To get an idea of what this change does consider: https://github.com/theopolis/osquery/blob/557acbff69c360eeb3b249a74aca7a8810e6fa19/osquery/tables/system/darwin/packages.cpp#L274
void genPackageReceipt(const std::string& path, RowYield& yield) {
auto receipt = SQL::selectAllFrom("preferences", "path", EQUALS, path);
if (receipt.size() == 0) {
// Fail if the file could not be plist-parsed.
return;
}
Row r;
r["path"] = path;
for (const auto& row : receipt) {
if (kPkgReceiptKeys.count(<http://row.at|row.at>("key")) > 0) {
r[<http://kPkgReceiptKeys.at|kPkgReceiptKeys.at>(<http://row.at|row.at>("key"))] = <http://row.at|row.at>("value");
}
}
if (!r["package_id"].empty()) {
yield(r);
}
}
looks like Python!