Skip to content

Inline template performance #1014

Discussion options

You must be logged in to vote

@andrewjtait thank you for filing this issue!

I wonder if this is a speed issue with ViewComponent or with content_tag. In my limited experience and based on some heresay, I believe that content_tag isn't the most performant way of building HTML.

Would you be up for running a similar benchmark on Rails itself, comparing content_tag and partials?

I do think we should consider documenting this issue and perhaps landing an update to our internal benchmark script to include this example. Would you be up for opening a PR?

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@andrewjtait
Comment options

@andrewjtait
Comment options

Answer selected by andrewjtait
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants