in reply to Re: Speeding up RecDesent parser for Perl Code
in thread Speeding up RecDesent parser for Perl Code

My main Modul has 7555 line (with commentblocks above every sub, but they have to be parsed too). Its yust keeps growing with every new feature.
  • Comment on Re^2: Speeding up RecDesent parser for Perl Code

Replies are listed 'Best First'.
Re^3: Speeding up RecDesent parser for Perl Code
by merlyn (Sage) on Sep 07, 2006 at 16:08 UTC
      Refactored it 2 times until now. But it is the main modul of an GUI-IDE with 2 years of work behind it and has about 130 subs (not to mention the anonymus ones). Futher refactoring would be serious work, that I have currently no time for.

      Andre
        Not to deprecate merlyn's excellent advice, but if you purely want to reduce the number of lines in the module to make it a bit easier to deal with, why not just cut the file into 5 or so separate files and include them all in the one master file.

        Hardly the "good design", but it might be a way to start. You could make the separate files contain conceptually separate code (even though to the compiler there would be no difference). These files could then be the basis for some real refactoring later.