Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-19448

Performance problems with angular-phonecat project

    XMLWordPrintable

Details

    • Hide

      EXECUTE: Import angular-phonecat project (https://github.com/angular/angular-phonecat.git) into JBT - the project's repository contains several tags that marks steps in the project's creation. Swicth to some branch liek step-12.
      ASSERT: Try to invoke CA on some JavaScripts and note the time of reaction.
      EXECUTE: Open a terminal, CD into your project's root directory and execute 'npm install' on the project.
      ASSERT: Very first requests for CA or Validation lead into the appearance of many builder jobs and for some time Eclipse may become irresponsible.
      After the builder jobs finishing the CA works much slower that it was before execution of 'npm install'.

      Show
      EXECUTE: Import angular-phonecat project ( https://github.com/angular/angular-phonecat.git ) into JBT - the project's repository contains several tags that marks steps in the project's creation. Swicth to some branch liek step-12. ASSERT: Try to invoke CA on some JavaScripts and note the time of reaction. EXECUTE: Open a terminal, CD into your project's root directory and execute 'npm install' on the project. ASSERT: Very first requests for CA or Validation lead into the appearance of many builder jobs and for some time Eclipse may become irresponsible. After the builder jobs finishing the CA works much slower that it was before execution of 'npm install'.

    Description

      On angular-phonecat project with the dependencies added by 'npm install' (as well as some other projects where dependencies are taken by bower with 'bower install') there is performance problem occurs.

      'npm install' and 'bower install' command could add more than 1000 JavaScripts into the project's Include Path, so this could lead into a problem with Eclipse's performance.

      The workaround for the issue is to exclude some directories from JSDT Include Path like 'node_modules/' (in case of 'npm install' is used), 'bower_components/' (in case of 'bower install' is used) as well as other service directories containing JavaScripts that aren't used in JS application:

      Attachments

        Activity

          People

            vrubezhny Victor Rubezhny (Inactive)
            vrubezhny Victor Rubezhny (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: