Community
    • Login

    Improving Find in Files performance

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 74 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Vitalii DovganV Offline
      Vitalii Dovgan
      last edited by

      Hi Notepad++ team!

      I’ve created a pull request that improves the Find in Files performance by re-using the existing approach with several optimizations, and thus making it 2…3 times faster.

      https://github.com/notepad-plus-plus/notepad-plus-plus/pull/18376

      I haven’t invented anything new, just optimized what was already there.
      I realize the code review may create an impression that several parts have been completely re-written, but that’s no true.
      In fact, the existing code has been refactored by extracting parts of several functions into separate helpers, so these moved blocks of code together with new helpers create an impression of a lot of changes. But if you follow the code logic, or just manually copy-paste the separate helpers into the places where these helpers are called, you’d realize the code flow remains the same.
      Please feel free to review and test.
      I’m writing here because I’m afraid the longer this pull request remains open, the higher are chances of merge conflicts to appear in the affected files.

      PeterJonesP 1 Reply Last reply Reply Quote 1
      • PeterJonesP Online
        PeterJones @Vitalii Dovgan
        last edited by

        @Vitalii-Dovgan ,

        Even though you just “moved” stuff, it’s a lot of lines of code changed, from the diff perspective, and Don manually reviews all of that. So it’s not an easy one to review.

        And since you didn’t attach the PR to any open Issue (though I’m sure there must be more than one asking for improved FiF performance), it’s probably a low priority in his mind (and I’m surprised he didn’t reject it out of hand. It might be because it came from you that it wasn’t rejected).

        I recommend searching out one or more Issues to attach it to.

        But yes, I do hope it’s able to be merged before there is a conflict.

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors