3

I'm growing tired of having to wait sometimes minutes to make searches in large text files (about 5 MB), especially with regex...

Any tips on good addon for Sublime Text or other text editor?

Comments
  • 2
    Vscode has a prettty good search feature imo
  • 2
    What? A minute to search 5mb? Is the file on a floppy disk, or is Sublime that slow?
  • 2
    VIM is surely fast with this kind of job?

    http://vimregex.com/
  • 1
    @jaread When you do regex searching capturing several lines and so on it is. The moment you press the regex icon you have to wait...
  • 0
    @gloslistan That sounds like a bug, I would report it to the sublime folks. No way in hell it should be taking that long unless it's doing something stupid like running the parser after every character or something.
  • 0
    010 Editor can open and search in large files very fast.
  • 5
    omg VerbalExpressions sounds interesting

    https://github.com/VerbalExpression...
  • 0
    Even with conditions and complicated regex structure it shouldn't take more than a minute to search through 5mb
  • 1
    Use vim. You can even open a file that have a few GB of data in it. The trick is to hit Ctrl+C just after vim starts to open this file
  • 1
  • 1
    @heyheni this is pretty much how I describe the regexes in my mind when I'm writing them anyway. Might as well stay with regex then instead of using a framework to build regexes.
  • 0
    All regex? A single slow search can just be a complicated (or badly written) pattern that generates tons of potential matches. But if it's every search then it's probably a bug.
Add Comment