facebook

JSP validation extremely slow

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #249620 Reply

    csell
    Member

    Hello,

    On my machine, JSP validation is extremely slow even for a small project. It seems the reason is that an external javac compiler is invoked for each file, which means a new Java VM is started up every time, making this feature unusable even for small projects.

    Is there a remedy for this?

    christian

    #249640 Reply

    Riyad Kalla
    Member

    Yes you are correct. How slow is too slow? Typical is 1-3 seconds, even with other JSP compilations in other IDES like IntelliJ. Have you tried adjusting your startup params like so: http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-10087.html

    JSP compilation in general is extremely expensive since it requires two compilation passes. The actual cost of spinning up the javac process is about 5% of the total processing time per file. In 4.1 we made a major optimization to the compilations of large projects where the entire build path was being recreated each time, so for big projects we saw improvements of compile time by up to 65%.

    #249654 Reply

    csell
    Member

    my VM settings are adjusted as described. For me, on a 1.5 Meg 2 MHz PIV, JSP compilation takes about 1-2 seconds per file. I am using ME 4.1.1, but I wouldnt want to try this on a large project

    #249660 Reply

    Riyad Kalla
    Member

    That sounds about right; I do agree that in the general case JSP validation/compilation is not a performant operation. We do have an open issue to further optimize it, I will add your comments to it to see if there is more work we can do in this area.

    #249763 Reply

    Paul
    Participant

    I’m not sure if it is relevant, but I recently had cause to do a checkout page where I had a few large drop downs for countries/codes and states/provinces. The editor never crashed on me, but it would take regular vacations, making it pretty painful to work with.

    I later removed the country-list drop downs out of curiosity to see if this was contributing to my issues, and the editor picked up again. The drop downs did not contain any JSTL/Scriptlet code, just flat HTML.

    #249830 Reply

    csell
    Member

    in fact, I have to correct myself. Its no 1-2 seconds, but rather 4-5 Seconds per file

    #249837 Reply

    Riyad Kalla
    Member

    That’s much too long. We should get 5.0 Milestone 1 out the door here soon, I would encourage you (in a separate install of Eclipse 3.2M6 and MyEclipse 5.0 M1) to test out your project with the Milestone 1 build for speed as well as bugs and report back to us.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: JSP validation extremely slow

You must be logged in to post in the forum log in