Found that Environment::UpdatePublishedBodies was spending long time in GetGrabbedInfo because of the inefficient usage of _setGrabberLinkIndicesToIgnore.
before:
for link in links:
if link.GetIndex() in _setGrabberLinkIndicesToIgnore:
# do something to ignored link
after:
for linkIndex in _setGrabberLinkIndicesToIgnore:
if linkIndex < len(links):
link = links[linkIndex]
# do something to ignored link
else:
log.warning('something is wrong!')
Found that
Environment::UpdatePublishedBodies
was spending long time inGetGrabbedInfo
because of the inefficient usage of_setGrabberLinkIndicesToIgnore
.before:
after: