Commits

Matthew Turk committed f152e11

If we don't have to preload any fields, skip calling the io_handler's preload
function. The preload function might, for instance, include some touching of
the filesystem we want to avoid.

  • Participants
  • Parent commits 1b80aea

Comments (0)

Files changed (1)

File yt/utilities/parallel_tools/parallel_analysis_interface.py

     def preload(self, grids, fields, io_handler):
         # This will preload if it detects we are parallel capable and
         # if so, we load *everything* that we need.  Use with some care.
+        if len(fields) == 0: return
         mylog.debug("Preloading %s from %s grids", fields, len(grids))
         if not self._distributed: return
         io_handler.preload(grids, fields)