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:
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user