Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9196691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:54:23+00:00 2026-06-17T21:54:23+00:00

Possible Duplicate: Opening/closing tags & performance? I am a big performance guy, and I

  • 0

Possible Duplicate:
Opening/closing tags & performance?

I am a big performance guy, and I like to have my code run as efficiently as possible. I don’t know if any of you know about liquid templating, and the style of code associate with that but often times they have tags like

{% if | class.method == 'true' %}

    blah text

{% endif %}

I hate liquid, but I’ve kind of set up the same thing with php tags on my site.

<?php /*if bob is logged in */ if ($user = 'bob') { ?>

     Stuff to do and write

<?php /*end if user is bob*/ } ?>

I kind of like the design, the html is really easy to edit but I find that I have a lot of php tags riddles throughout my templates. Is this bad design? I mean readability is fine for me, in fact it’s better, but I’m worried about whether I’m making too large of a sacrifice with the website’s performance if I add all of these little tags.

Anyone know?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:54:24+00:00Added an answer on June 17, 2026 at 9:54 pm

    No, this is not a big performance issue. Many compiled templates simply replace template tags with PHP open and close tags (eg. Smarty).

    see @h2ooooooooooooooo link

    https://softwareengineering.stackexchange.com/questions/80084/is-premature-optimization-really-the-root-of-all-evil

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Opening/closing tags & performance? This is a newbie question, but I could
Possible Duplicate: PHP: Opening/closing tags & performance? this is probably a stupid question, but
Possible Duplicate: PHP Regex Get Text Between BBCode Tags I have a text like:
Possible Duplicate: && operator in Javascript In the sample code of the ExtJS web
Possible Duplicate: PHP Regular express to remove <h1> tags (and their content) I have
Possible Duplicate: RegEx match open tags except XHTML self-contained tags I have a HTML
Possible Duplicate: How to remove HTML tag in Java RegEx match open tags except
Possible Duplicate: Opening the Settings app from another app Is there a way to
Possible Duplicate: Does every Core Data Relationship have to have an Inverse? I have
Possible Duplicate: IOError when trying to open existing files I'm having problems opening a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.