[jbosstools-issues] [JBoss JIRA] (JBIDE-12405) As-you-type validation works slow when many strings are being added
Victor Rubezhny (JIRA)
jira-events at lists.jboss.org
Tue Aug 7 19:04:06 EDT 2012
[ https://issues.jboss.org/browse/JBIDE-12405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710370#comment-12710370 ]
Victor Rubezhny commented on JBIDE-12405:
-----------------------------------------
Not "5050 threads" - thread is only one - but... Yes, this is a problem of JavaDirtyRegionProcessor... It re-validates whole the document each time the document partitioning is changed... And the partitioning is changed each time you have manually typing a string and 99% of pasting a text that contains a number of partitions.
Agreed to collect the changed string regions and to call validator only once for that collection of strings.
> As-you-type validation works slow when many strings are being added
> -------------------------------------------------------------------
>
> Key: JBIDE-12405
> URL: https://issues.jboss.org/browse/JBIDE-12405
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: common/jst/core
> Affects Versions: 3.4.0.M1
> Reporter: Alexey Kazakov
> Assignee: Victor Rubezhny
> Priority: Blocker
> Fix For: 3.4.0.M1
>
>
> 1. Create a cdi bean class.
> 2. Add the following lines to any method of the class:
> {code}
> System.out.println("#{test.bytess} sf sdf " + "" + "" + "");
> System.out.println("#{test.bytess} sf sdf " + "" + "" + "");
> System.out.println("#{test.bytess} sf sdf " + "" + "" + "");
> System.out.println("#{test.bytess} sf sdf " + "" + "" + "");
> System.out.println("#{test.bytess} sf sdf " + "" + "" + "");
> System.out.println("#{test.bytess} sf sdf " + "" + "" + "");
> System.out.println("#{test.bytess} sf sdf " + "" + "" + "");
> System.out.println("#{test.bytess} sf sdf " + "" + "" + "");
> System.out.println("#{test.bytess} sf sdf " + "" + "" + "");
> System.out.println("#{test.bytess} sf sdf " + "" + "" + "");
> System.out.println("#{test.bytess} sf sdf " + "" + "" + "");
> System.out.println("#{test.bytess} sf sdf " + "" + "" + "");
> {code}
> 3. Repeat #2 a ten times.
> 4. There are 0.5n(n+1) as-you-type validation thread created, where n is a nubmer of srings of the file.
> So if you copied a hundred strings you will have 5050 threads.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list