Menu

Compare Plugin Hangs on Large Files

2008-06-03
2012-11-14
  • Ameer Bauer

    Ameer Bauer - 2008-06-03

    Hello,

    I am using npp v4.9.2.  I have noticed that when I try to compare large files (about 60,000 lines or greater)the plugin hangs and i have to shutdown npp.  Any thoughts?

    thank you
    -ameer

     
    • Harry

      Harry - 2008-06-03

      It probably doesn't hang but rather takes a long time to do all its calculations. A file as large as you indicate (60.000+ lines) may well take a few minutes perhaps. Maybe a dedicated file compare utility works better.

       
    • Ty Landercasper

      Ty Landercasper - 2008-06-05

      Yeah, I've optimized the code as much as I can, but ultimately, it can't beat a tool that's built around that sole purpose.

      One thing you can do is try turning off align matches and detect moves. That should give it a significant speed boost.

       
    • Ameer Bauer

      Ameer Bauer - 2008-06-03

      Ok, it does finish eventually, a 60,233 line file takes 27 minutes on a  dual core @ 3Ghz with 2 GB of RAM.
      Where as, if I open and compare the same files with ConText it takes 3 minutes.

      Thanx for the reply.