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 = PackerPool.new(size) { factory.packer(options) } @unpackers = UnpackerPool.new(size) { factory.unpacker(options) } end