You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, in_tail startup process take very long time when reading huge files.
Would you consider adding an option like skip_refresh_on_startup :bool to reduce startup time?
ex.
def start
super
if @pos_file
@pf_file = File.open(@pos_file, File::RDWR|File::CREAT|File::BINARY, @file_perm)
@pf_file.sync = true
@pf = PositionFile.parse(@pf_file)
end
- refresh_watchers+ refresh_watchers unless @skip_refresh_on_startup
timer_execute(:in_tail_refresh_watchers, @refresh_interval, &method(:refresh_watchers))
end
The text was updated successfully, but these errors were encountered:
Currently, in_tail startup process take very long time when reading huge files.
Would you consider adding an option like
skip_refresh_on_startup :bool
to reduce startup time?ex.
The text was updated successfully, but these errors were encountered: