class LineCache (Producer):
- _lines_per_iteration = 1000
+ _lines_per_iteration = 50000
def __init__ (self, fileobj, dispatcher):
continue
offsets.append (offset)
i += 1
- if i == limit:
+ if i >= limit:
+ i = 0
yield True
self.have_load_finished ()
dialog.set_transient_for (self.gtk_window)
dialog.show ()
- self.update_progress_id = gobject.timeout_add (50, self.update_load_progress)
+ self.update_progress_id = gobject.timeout_add (250, self.update_load_progress)
def update_load_progress (self):