Skip to content

Commit 416c15d

Browse files
committed
update comment
Signed-off-by: Ian Chen <ichen@openrobotics.org>
1 parent 5886229 commit 416c15d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/gz/sim/components/Model.hh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ namespace serializers
104104
return _in;
105105
}
106106

107-
// Its super expensive to create an SDFElement for some reason
107+
// 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
108111
sdf::Errors errors;
109112
static sdf::SDFPtr sdfParsed;
110113
if (!sdfParsed)

0 commit comments

Comments
 (0)