lib/prometheus/client/helper/mmaped_file.rb in prometheus-client-mmap-0.7.0.beta23 vs lib/prometheus/client/helper/mmaped_file.rb in prometheus-client-mmap-0.7.0.beta24

- old
+ new

@@ -1,12 +1,14 @@ require 'prometheus/client/helper/entry_parser' require 'prometheus/client/helper/file_locker' require 'mmap' +require 'fast_mmaped_file' module Prometheus module Client module Helper class MmapedFile < Mmap + include FastMmapedFile include EntryParser attr_reader :filepath, :size def initialize(filepath, mode = 'r', protection = Mmap::MAP_SHARED, options = {}) @filepath = filepath