Better performance

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Franck Y

    Better performance

    Hello Folks,

    I am facing a problem where i need to parse around 200 files, i have a
    bit of knowledge in PHP/Perl/Python (the magic P :-P)

    Which one would you suggest me since i have to generate a web
    interface ?
    And each one has his area of 'work'


    Thanks for your help !


  • Arnaud Delobelle

    #2
    Re: Better performance

    Franck Y <franck110@gmai l.comwrites:
    Hello Folks,
    >
    I am facing a problem where i need to parse around 200 files, i have a
    bit of knowledge in PHP/Perl/Python (the magic P :-P)
    >
    Which one would you suggest me since i have to generate a web
    interface ?
    And each one has his area of 'work'
    >
    >
    Thanks for your help !
    Python, of course.

    --
    Arnaud

    Comment

    • Bruno Desthuilliers

      #3
      Re: Better performance

      Franck Y a écrit :
      Hello Folks,
      >
      I am facing a problem where i need to parse around 200 files, i have a
      bit of knowledge in PHP/Perl/Python (the magic P :-P)
      >
      Which one would you suggest me since i have to generate a web
      interface ?
      And each one has his area of 'work'
      >
      And where's your performance problem ?

      You don't give enough details to seriously answer your question, but
      Python is a good tool for file parsing and web development anyway...

      Comment

      • David

        #4
        Re: Better performance

        On Mon, Jun 2, 2008 at 4:42 AM, Franck Y <franck110@gmai l.comwrote:
        Hello Folks,
        >
        I am facing a problem where i need to parse around 200 files, i have a
        bit of knowledge in PHP/Perl/Python (the magic P :-P)
        >
        Trite answer: Use whatever is going to work best in your circumstances.

        All 3 languages can do what you need.

        Strong points for the languages as related to your question:

        PHP: Easy to make web pages.
        Perl: Lots of libraries, good text processing support
        Python: Easy to read and maintain

        You could even use all 3, in their strong areas. eg, PHP for the web
        page, perl for quick & dirty text-processing utils, and Python for the
        longer, more complicated scripts which you have to maintain.

        David.

        Comment

        • Paul Boddie

          #5
          Re: Better performance

          On 2 Jun, 20:16, David <wizza...@gmail .comwrote:
          >
          PHP: Easy to make web pages.
          Perl: Lots of libraries, good text processing support
          Python: Easy to read and maintain
          PHP: For the security vulnerabilities .
          Perl: For the maintenance problem.
          Python: To the rescue!

          ;-)
          You could even use all 3, in their strong areas. eg, PHP for the web
          page, perl for quick & dirty text-processing utils, and Python for the
          longer, more complicated scripts which you have to maintain.
          Yes, it depends on how big the problem really is and how complicated
          the solution has to be. Are the files all in the same format? Do they
          have to be parsed repeatedly? Will new versions of the files be
          released? Will the parser output go straight to a Web page or will it
          be stored somewhere?

          Paul

          Comment

          Working...