Bug 368634 - Using document.createElement in <script> creates massive slowdown
Summary: Using document.createElement in <script> creates massive slowdown
Status: CLOSED DUPLICATE of bug 317249
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2012-01-15 22:19 EST by Raxx Raxx CLA
Modified: 2020-05-14 11:32 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raxx Raxx CLA 2012-01-15 22:19:55 EST
First of all I recognize that this may not be a bug directly in the PDT portion of Eclipse; however, I am using PDT for PHP/HTML/JavaScript dev and figured this was the best place to begin the bug.  Please refer me to the proper categorization if there is a better place.

Okay, so I am writing 'a website' and have a desire to use some custom markup elements in my xhtml.  In order for them to be processed properly by the markup tokenizer in each web browser they need to be created in a <script> tag at the head of the page.

When I add a document.createElement("newElementName") to the document there is a rather large slowdown that occurs in stutters.  At first it's just a couple 'hangs' where Eclipse becomes unresponsive for maybe a second or two.  A few of those, perhaps 5 - 20?  Then at some point some deeper processing begins to occur and Eclipse will hang for 30 seconds to a minute, finally coming back and allowing me to continue with my development.  For the most part it seems like once the 'processing' has occurred Eclipse no longer slows down, though I have had a few times where it did become unresponsive for 30-60s and come back even when I hadn't just edited any JavaScript.

So Eclipse doesn't seem to be giving me any sort of feedback about what it's doing during those periods of time and the UI becomes totally unresponsive to the point of Windows declaring it a "Not Responding" application.  I did once have a (I'm paraphrasing here) "Java Heap Out of Memory" error concurrent with the issue, but haven't seen that recently.

This has occurred in Helios w/PDT and the latest version of Indigo/JavaScript with the latest version of PDT (3.0.0, I believe) downloaded through the repo.

I would theorize that my bug arises likely as a result of some sort of JavaScript validation processing that's going on with regards to the createElement function or perhaps something to do with preparing Eclipse to accept augmented XHTML validly?  


Here's a small example that in my experience can produce the bug (may not be minimal):

<html>
 <head>
  <script type="text/javascript">
   document.createElement("header");
   document.createElement("content");
   document.createElement("footer");
  </script>
 </head>
 <body>
  <header>I'm a header</header>
  <content>I'm content</content>
  <footer>I'm a footer</footer>
 </body>
</html>



If there's nobody in a position to fix the bug right away I'm happy to help once this crunch time is over.  Perhaps someone could point me in the right direction of where to find what might be wrong and how to go about acquiring a debug version of Eclipse.  A cursory look through the documentation showed a lot of info on plug-in dev but I couldn't really find anything on actually bug-fixing the IDE.

Thanks all in advance!

Cheers,
Raxx
Comment 1 Raxx Raxx CLA 2012-01-15 22:21:56 EST
Oop.  Forgot to mention that this is in a .php file, though I just checked and the bug also occurs in .html files, as well.

Also, I am in the PHP perspective.
Comment 2 Raxx Raxx CLA 2012-02-13 04:00:57 EST

*** This bug has been marked as a duplicate of bug 317249 ***