The author shares improvements made to the P2 HTML templating library for Ruby, enhancing its template generation performance significantly. By utilizing a new compilation technique and implementing several optimizations, P2 now outperforms traditional Ruby templating methods like ERB. The article details the technical processes behind these enhancements and the resulting performance benchmarks.
ruby ✓
templating ✓
performance ✓
p2 ✓
+ erb