  
      def get_missing_alignments(self):
          """ yield each frame that does not exist in alignments file """
          self.output_message = "Frames missing from alignments file"
          exclude_filetypes = ["yaml", "yml", "p", "json", "txt"]
          for frame in tqdm(self.items, desc=self.output_message):
              frame_name = frame["frame_fullname"]
              if (frame["frame_extension"] not in exclude_filetypes
                      and not self.alignments.frame_exists(frame_name)):
                  logger.debug("Returning: '%s'", frame_name)
 
</s> remove         frames = [item["frame_fullname"] for item in self.items]
 </s> add         frames = set([item["frame_fullname"] for item in self.items]) </s> remove             if not self.alignments.hashes_to_frame.get(f_hash, None):
 </s> add             if f_hash not in hashes_to_frame: </s> remove     def remove_alignment(self, item):
        """ Remove the alignment from the alignments file """
        del_count = 0
        frame_name, alignments, number_alignments = item[:3]
        for idx in self.alignments.yield_original_index_reverse(alignments, number_alignments):
            face_indexes = self.items.items.get(frame_name, [-1])
            if idx not in face_indexes:
                del alignments[idx]
                self.removed.add(frame_name)
                logger.verbose("Removed alignment data for image: '%s' index: %s",
                               frame_name, str(idx))
                del_count += 1
            else:
                logger.trace("Not removing alignment data for image: '%s' index: %s",
                             frame_name, str(idx))
        return del_count

 </s> add 
        exclude_filetypes = set(["yaml", "yml", "p", "json", "txt"])
  
      def get_missing_alignments(self):
          """ yield each frame that does not exist in alignments file """
          self.output_message = "Frames missing from alignments file"
        exclude_filetypes = set(["yaml", "yml", "p", "json", "txt"])
          for frame in tqdm(self.items, desc=self.output_message):
              frame_name = frame["frame_fullname"]
              if (frame["frame_extension"] not in exclude_filetypes
                      and not self.alignments.frame_exists(frame_name)):
                  logger.debug("Returning: '%s'", frame_name)
keep keep keep keep replace keep keep keep keep keep
 Multiple Tools->Alignmet speed ups (#785) 
tools/lib_alignments/jobs.py