class MessagePack::Factory::Pool
def initialize(factory, size, options = nil)
def initialize(factory, size, options = nil) options = nil if !options || options.empty? @factory = factory @packers = MemberPool.new(size) { factory.packer(options).freeze } @unpackers = MemberPool.new(size) { factory.unpacker(options).freeze } end