3 ms·
Neat. It automates the same kind of optimization I’ve done with ERB before (pre-compiled templates in constants). It means I don’t have to teach people were and
by kayodelycaon 1y ago
Neat. It automates the same kind of optimization I’ve done with ERB before (pre-compiled templates in constants). It means I don’t have to teach people were and how to optimize ERB.
To get faster this, you need to get out your profiling tools and your notebook.
Builder::XmlMarkup and strings are significantly more flexible and have many optimization points. (E.g. not escaping numbers.) They have the potential to be an order of magnitude faster. But you’ll be using that notebook to diagram where everything goes.