Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the performance of Index.add. #208

Closed
wants to merge 1 commit into from
Closed

Commits on Mar 4, 2016

  1. Improve the performance of Index.add.

    The loops in Index.add can easily be called hundreds of thousands of times for
    large documents. Larger documents can perform particularly badly[1] under
    Chrome. Removing the usage of reduce and filter in favour of inline native for
    loops can lead to a 20-30% performance increase in Chrome. Firefox also sees a
    similar but much smaller impovement (~5%).
    
    [1]: mkdocs/mkdocs#859 (comment)
    d0ugal committed Mar 4, 2016
    Configuration menu
    Copy the full SHA
    9d9348d View commit details
    Browse the repository at this point in the history