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

feat: optimisation of EqualMatch method #3342

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Jun 23, 2023

  1. feat: optimisation of EqualMatch method

        - Combined whitespace stripping: The leading and trailing whitespaces are stripped in a single step, reducing the number of method calls and condition checks.
    
        - Reduced string conversions: Instead of converting the entire text and pattern to strings, only the necessary substrings are used. This avoids unnecessary conversions and improves performance.
    
        - Early return: The function returns early if the normalized characters or string comparison fails, eliminating the need for the match boolean variable and reducing unnecessary computations.
    Sanix-Darker committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    dc317f8 View commit details
    Browse the repository at this point in the history
  2. feat: format

    Sanix-Darker committed Jun 23, 2023
    Configuration menu
    Copy the full SHA
    444d738 View commit details
    Browse the repository at this point in the history