This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 150204

Summary: Switch off Lexer's Token Hierarchy during document loading
Product: editor Reporter: Miloslav Metelka <mmetelka>
Component: -- Other --Assignee: Miloslav Metelka <mmetelka>
Status: RESOLVED FIXED    
Severity: blocker Keywords: PERFORMANCE
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 151916    

Description Miloslav Metelka 2008-10-15 11:41:31 UTC
Since the document's contents are read in 16K blocks and Document.insertString() is done for each block the lexer gets
invoked after each block's insert. For large documents with complex embeddings with possibly long top-level tokens such
as JSP it may be costly. It would be better to update hierarchy at the end of the whole reading.
 The clients of token hierarchy should be prepared that the hierarchy becomes inactive at any time but it's necessary to
verify whether they really are in reality.
Comment 1 Miloslav Metelka 2008-11-07 21:39:43 UTC
http://hg.netbeans.org/main/rev/450b6ca9b564
Comment 2 Quality Engineering 2008-11-08 04:28:49 UTC
Integrated into 'main-golden', will be available in build *200811080201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/450b6ca9b564
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #150204 - Switch off Lexer's Token Hierarchy during document loading.