build_marshal_gemspecs (Gem::Indexer)

    # File lib/rubygems/indexer.rb, line 216
      def build_marshal_gemspecs(index)
        progress = ui.progress_reporter index.size,
                                        "Generating Marshal quick index gemspecs for #{index.size} gems",
                                        "Complete"

        files = []

        Gem.time 'Generated Marshal quick index gemspecs' do
          index.gems.each do |original_name, spec|
            spec_file_name = "#{original_name}.gemspec.rz"
            marshal_name = File.join @quick_marshal_dir, spec_file_name

            marshal_zipped = Gem.deflate Marshal.dump(spec)
            open marshal_name, 'wb' do |io| io.write marshal_zipped end

            files << marshal_name

            progress.updated original_name
          end

          progress.done
        end

        @files << @quick_marshal_dir

        files
      end