lib/perobs/IDList.rb in perobs-4.5.0 vs lib/perobs/IDList.rb in perobs-4.6.0

- old
+ new

@@ -44,11 +44,11 @@ # @param name [String] Name of the file # @param max_in_memory [Integer] Specifies the maximum number of values # that will be kept in memory. If the list is larger, values will # be cached in the specified file. # @param page_size [Integer] The number of values per page. The default - # value is 32 which was found the best performing config in tests. + # value is 32 which was found the best performing config in tests. def initialize(dir, name, max_in_memory, page_size = 32) # The page_file manages the pages that store the values. @page_file = IDListPageFile.new(self, dir, name, max_in_memory, page_size) clear @@ -61,10 +61,10 @@ index = @page_records.bsearch_index { |pr| pr.max_id >= id } # Get the corresponding IDListPageRecord object. page = @page_records[index] # In case the page is already full we'll have to create a new page. - # There is no guarantee that a split will yield an page with space as we + # There is no guarantee that a split will yield a page with space as we # split by ID range, not by distributing the values evenly across the # two pages. while page.is_full? new_page = page.split # Store the newly created page into the page_records list.