Please sign in to comment.
Instead of marking raw text in templates as safe, and then putting th…
…em through String#<< which checks if the String is safe, use safe_concat, which uses the original (internal) String#<< and leaves the safe flag as is. Results in a significant performance improvement.
- Loading branch information...
Showing with 3 additions and 1 deletion.