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/.