From: "Carlo E. Prelz" Date: 2013-01-14T15:11:49+09:00 Subject: Re: Garbage Collection and Fibers Subject: Re: Garbage Collection and Fibers Date: Mon 14 Jan 13 09:43:20AM +0900 Quoting Na Na (lists@ruby-forum.com): > * Reduce the number of objects I use I think this is the wisest option at your disposal. When a GC'ed language is embraced, you obtain great advantages, but at the cost of some compromises. You will of course need to refactor, but the result will be better, and you will learn a lot in the process. If you find yourself in the situation you describe, it means that you are constantly creating and throwing away lots of objects. Think about what can be reused. Divide your object logic between stuff that you often need and stuff you rarely use. Stuff used often is better created at beginning and never thrown away. What I generally do is create a main class for my application. The first code I write is its initialize method, which creates and assigns to instance variables the material I am supposed to always have available. > * Use something other than ruby for my app (nowhere near an ideal > option!) NOOOOOOOOOOOO!!!! 8-) Carlo -- * Se la Strada e la sua Virtu' non fossero state messe da parte, * K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe * di parlare tanto di amore e di rettitudine? (Chuang-Tzu)