finally creating less objects in the test

basic still #23 , now applied
Basic size of 20, interpreter gets 50 and the full set is 1024

Tests run more than twice as fast!!
This commit is contained in:
Torsten Ruger
2019-02-09 12:44:35 +02:00
parent 37eeb81f45
commit a89301d623
11 changed files with 84 additions and 43 deletions

View File

@ -55,10 +55,8 @@ module Parfait
boot_boot_space( types )
classes = boot_classes( types )
fix_types( types , classes )
if( page = options[:page_size])
Factory.page_size = page
PUTS "PAGE #{page}"
end
page = options[:factory] || 1024
Factory.page_size = page
space = Space.new( classes )
Parfait.set_object_space( space )
end

View File

@ -20,7 +20,7 @@ module RubyX
# initialize boots Parfait and Risc (ie load Builin)
def initialize(options)
Parfait.boot!(options)
Parfait.boot!(options[:parfait] || {})
Risc.boot!
end