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 93534

Summary: Improve performance of TokenSequence.embedded()
Product: editor Reporter: Miloslav Metelka <mmetelka>
Component: LexerAssignee: issues@editor <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:

Description Miloslav Metelka 2007-01-30 11:03:48 UTC
Currently if a token contains an embedding the token gets wrapped by
EmbeddingContainer. If the token does not have an embedding the algorithm to
find a possible embedding is invoked during each invocation of
TokenSequence.embedded() which degrades performance. Upon the first
TS.embedded() call the token should somehow internally mark itself that it does
not contain embedding.
Comment 1 Miloslav Metelka 2007-10-02 13:38:19 UTC

*** This issue has been marked as a duplicate of 112465 ***