From: Robert Klemme Date: 2003-07-02T20:36:54+09:00 Subject: Re: Memory behavior of String#dup "Yukihiro Matsumoto" schrieb im Newsbeitrag news:1056982404.612203.27747.nullmailer@picachu.netlab.jp... > Hi, > > In message "Re: Memory behavior of String#dup" > on 03/06/30, "Robert Klemme" writes: > > |Though I still worry about the overhead of one more ruby instance (there > |must be some bookkeeping done etc.). Is this neglectible? > > I guess so. It's only 20 bytes per object on 32 bit CPU. Hm, that amounts to 2 million bytes for 100000 instances - which is not to much IMHO. Plus, there will be some overheads for object lookups I guess. I'd like to propose the change to not dup frozen strings as Hash keys. Should I enter an RCR? Do we discuss this here? Regards robert