We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5886229 commit 416c15dCopy full SHA for 416c15d
include/gz/sim/components/Model.hh
@@ -104,7 +104,10 @@ namespace serializers
104
return _in;
105
}
106
107
- // Its super expensive to create an SDFElement for some reason
+ // Its super expensive to an sdf::SDFPtr object.
108
+ // Workaround this by making it a static object so we only initialize it
109
+ // once.
110
+ // https://github.com/gazebosim/sdformat/issues/1478
111
sdf::Errors errors;
112
static sdf::SDFPtr sdfParsed;
113
if (!sdfParsed)
0 commit comments