ros / resource_retriever

Package used to retrieve resources of different kinds, e.g. http://, file://, the ROS specific package://, etc.
8 stars 42 forks source link

Make importing the library fast #87

Closed furushchev closed 8 months ago

furushchev commented 11 months ago

import resource_retriever is now slow due to the roslib.load_manifest and instantiation of rospkg.RosPack on import time. In this PR,

  1. Removed the roslib.load_manifest as it is not necessary on the latest ROS distribution
  2. Delay instantiation of rospkg.RosPack object to right before the object is used.

furushchev commented 8 months ago

@ahcorde @clalancette Kindly ping to the maintainers.