From: Xavier Noria Date: 2011-05-12T16:14:23+09:00 Subject: Re: how to make eval() faster? No need to create a temp file. Unless the resulting code is huge, you can generate in memory and eval (once) the whole thing. Top-posted from my iPad El 12 May 2011, a les 08:55, Stu va escriure: > I was going to suggest a creating a tmp file with a generator. create > a sort of cached methods type thing. > > This may fix your issue. > > On Thu, May 12, 2011 at 1:37 AM, Zd Yu wrote: >> I just came up with an idea: I can parse the XML configuration file and >> generate a .rb file on the fly then invoke the rb file. >> >> Although it brings much extra efforts, it can fix the performance issue. >> >> -- >> Posted via http://www.ruby-forum.com/. >> >> >