• 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
    • Faster Auto-Links

    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: Faster Auto-Links

    • Issue Tools
      • View Changes
    1. issueid=893 October 21, 2009 4:01 PM
      pegasus pegasus is offline
      VaultWiki Team
      Faster Auto-Links

      Auto-Links make up a significant portion of page generation time for articles, especially for long articles. [vault=Forbidden/Limited List]One long article[/vault] typically generates in 1.3 - 1.9 seconds.

      Changed for the next build by significantly reducing the number of preg_replaces. Previously, there was 1 match attempt for every existing article in the current namespace. Now, there is only 1 match attempt, unless the total combined length of the existing titles exceeds the maximum accepted by PCRE, in which case additional attempts will be created from the overflow.

      Since the max length for the subject (the text that may contain autolinks) is significantly higher, I find it very unlikely this will reach the maximum length accepted. While it's possible to add handling for this too, it seems that checking if we're approaching the limit requires us to approach PHP's limits, so it's best to ignore this -- if we have an article that long, it wouldn't be the autolinks that bring the server down.

      The described change has reduced autolink matching time (the time taken to complete about 10 lines of PHP) by 30-70% for long articles (the change is negligible for very short articles and forum posts).
    Issue Details
    Issue Number 893
    Issue Type Task
    Project VaultWiki 3.x Series
    Category BB-Code Parsing
    Status Completed
    Priority 3 - Loss of Functionality
    Target Version 2.5.5
    Resolved Version 2.5.6
    Milestone (none)
    Software DependencyAny
    Votes to perform 0
    Votes not to perform 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    + 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 2:12 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.