Good day. There is a lot of experience in writing parsers in php. The question, in fact, is this: there is one huge parser, and there was a question of speed optimization. Does it make sense to rewrite the parser to java (for example, using something like jsoup)? What will be the speed increase in this case?

The question is more specific: will the speed of work of 2 parsers of the same resource on the same server differ significantly if one is written in java and the other in php (server is excellent, dedicated)? Java I study, but there is not a lot of experience in this question.

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants Vladimir Martyanov , Nick Volynkin ♦ 16 Feb '16 at 14:25 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 2
    have you already run a profiler and found out that the bottleneck is php and not a network? - KoVadim
  • Hello. I develop parsers of different complexity in Java using JSOUP. I think if you parallelize the process of parsing, then the increase in speed can be achieved! - Oleg Marchenko
  • Are you sure that there is any point in optimizing the parser? Before you optimize anything you need to make sure that the problem is in it, otherwise it does not make sense. "Excessive optimization is the root of all ills." - Arsenicum
  • I recommend to reformulate the question in "how to profile / optimize the performance of the parser." Then it will be possible to give specific answers that will allow you to understand where the bottleneck is and, therefore, how to work with it. KoVadim is right that shifts the focus of the discussion from tool to task. - Nick Volynkin ♦
  • And in the current formulation, the question involves the exchange of subjective opinions, such a format is offtopic for SO. After editing the question will be rediscovered and it will be possible to answer it. ru.stackoverflow.com/help/on-topic ru.stackoverflow.com/help/dont-ask - Nick Volynkin ♦

0