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.
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.
*** This issue has been marked as a duplicate of 112465 ***