• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 3.x Series
    • Task
    • Move the Legacy Parser Loop

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Move the Legacy Parser Loop

    • Issue Tools
      • View Changes
    1. issueid=351 January 7, 2009 2:59 PM
      pegasus pegasus is offline
      VaultWiki Team
      Move the Legacy Parser Loop

      This is the second time we're bringing this up, but the legacy parser loop should only be used for legacy codes or specialty codes (redirect, template, etc) when legacy codes are turned on.

      We originally dropped this task from 2.1.0 because using the legacy parser loop used fewer server resources or resulted in faster page generation times on these smaller tag lists (containing, for example, only a single tag each - [redirect] or [template]), rather than vBulletin's BB-Code Parser loop.

      However, the legacy loop is extremely hard to follow. The standard loop can be made at least as efficient by modifying the search terms in cases where the tag lists are very short. If there is only one tag, the search terms should be the opening and closing tags, not opening and closing brackets. This change, overall, should make the parser more intuitive, and allow us to shorten the special_class_bbcode.php file by moving the legacy function to its respective subclass.
    Issue Details
    Issue Number 351
    Issue Type Task
    Project VaultWiki 3.x Series
    Category BB-Code Parsing
    Status Completed
    Priority 3 - Loss of Functionality
    Target Version 2.1.3
    Resolved Version 2.2.0
    Milestone VaultWiki 2.2.0
    Software DependencyAny
    Votes to perform 0
    Votes not to perform 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. January 27, 2009 2:39 AM
      pegasus pegasus is offline
      VaultWiki Team
      Moved the legacy loop to the legacy class file, but it is still used for every wiki parsing.

      The only thing that we could change to improve performance was the REDIRECT loop, since that is the only tag checked for that loop, nested tags are ignored, and any NOPARSE tags have already been applied. The change makes an improvement of about 0.3 milliseconds.

      The legacy parser is still needed for these other tags, because it is simply more efficient than the vBulletin parser. When the tag list is more than 1, or where nesting is possible with multiple TEMPLATE tags, we cannot use a simple regex to evaluate those tags.

      But redirects are processed faster.
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 8:28 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.