The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Calling on the GC after Rubygems

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Tucker

Posts: 38
Nickname: raggi
Registered: Sep, 2007

James Tucker is an abstractionist programmer currently focusing in the Ruby and Telecomms domains
Calling on the GC after Rubygems Posted: Oct 4, 2007 10:09 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by James Tucker.
Original Post: Calling on the GC after Rubygems
Feed Title: ragged blog » Ruby
Feed URL: http://blog.ra66i.org/catagories/informatics/programming/ruby/feed/
Feed Description: blog of raggisms and random musings, by raggi™ (by category: ruby)
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by James Tucker
Latest Posts From ragged blog » Ruby

Advertisement
Calling GC.start immediately after requiring rubygems cut the raw string size down to 45%. heh. RAW = true def write_strings_to fn open(fn, 'w+') do |f| ObjectSpace.each_object do |o| f.send((RAW ? :print : :puts), o) if o.class == String end end end file = %w[strings_no_gems.log strings_gems_no_gc.log strings_gems.log] GC.start write_strings_to file[ 0 ] require 'rubygems' write_strings_to file[ 1 ] GC.start write_strings_to file[ 2 ] last = File.size file[ 0 ] file.each do |fn| cur = [...]

Read: Calling on the GC after Rubygems

Topic: Exporting Keynote 3 as PDF Previous Topic   Next Topic Topic: Messieurs les Flamingants

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use