[
https://jira.jboss.org/jira/browse/JBIDE-4514?page=com.atlassian.jira.plu...
]
Julien Kronegg commented on JBIDE-4514:
---------------------------------------
I tested on CRUD application with 360 .xhtml/.page.xml files, and edited one Java file
without Seam component, then edited one Java file with a Seam component (EntityHome) .
The EntityHome @Name and its @In properties (3 of them) are referred in 52 page.xml files
and 8 xhtml files.
There are 183 xhtml files with "Context variable cannot be resolved".
Before each test, the project is cleaned and all files are automatically validated
(validation duration is taken into account at this point.
3.0.1.GA-R200905070146-H18 (default Seam Validator configuration)
When editing/saving the Java file without Seam component: 25 seconds
When editing/saving the Java file with EntityHome: 25 seconds
3.1.0.M2-N200906231801-H289 (default Seam Validator configuration)
When editing/saving the Java file without Seam component: almost immediate validation
(less than one second)
When editing/saving the Java file with EntityHome: 5 seconds
3.1.0.M2-N200906241801-H293 (default Seam Validator configuration)
When editing/saving the Java file without Seam component: almost immediate validation
(less than one second)
When editing/saving the Java file with EntityHome: 5 seconds
After unchecking "Revalidate unresolved ELs automatically", the Seam Validator
duration did not change.
After unchecking all checkboxes and setting each level to Ignore in "Expression
language"; when editing/saving the Java file with EntityHome: almost immediate
validation (less than one second)
Thank you Alexey for the fix. You saved our team a lot of time. But the 5 seconds is still
a lot for a simple save operation. Let's have a try for some days, then we can come
back to the workaround of disabling "Expression language" validations.
Improve performance of Seam Validator when a Java file is modified
------------------------------------------------------------------
Key: JBIDE-4514
URL:
https://jira.jboss.org/jira/browse/JBIDE-4514
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: Seam
Affects Versions: 3.0.0.GA
Environment: JBossTools-ALL-win32-3.0.1.GA-R200905070146-H18, Seam 2.1.2.GA
Reporter: Julien Kronegg
Assignee: Alexey Kazakov
Fix For: 3.1.0.M2
Attachments: screenshot-1.jpg
Seam Validator checks EL expressions in WebContent/*.xhtml pages when a Java file is
modified.
On a Intel Core2 1.83 GHz T5600 machine with 2 GB RAM, it takes about 0.5 second per
XHTML page generated by seam-gen (and modified using the workaround described in
JBIDE-4512 to have no "property cannot be resolved" warnings). This is very high
and has a big impact if you got a lot of XHTML pages (I got 150 of them!).
So it would be nice if the whole validation process could take about 2-5 seconds (instead
of about 2 minutes for me).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira