-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance Profile #411
Comments
Thanks, this is useful information. My guess would be that |
Well, that can be improved easily. The same could be done on |
SegmentOps doesn't compile in NetBeans against master:
The return statement does not evaluate to an
FWIW, aligning symmetrical code can sometimes make spotting issues easier, such as:
The code, without knowing what it's supposed to do, looks correct, except for the |
The above code was implemented by @afester. |
I'm closing this as the issues raised are now indicated in separate issues. |
Profile information from my application:
com.sun.javafx.collections.VetoableListDecorator.add
, which is called fromorg.fxmisc.richtext.ParagraphText.<init>
.ParagraphText
The following objects are instantiated for each paragraph, regardless of whether they get used:
The selection shape, in particular, probably doesn't need to have an object assigned until needed. This implies that the following lines in the constructor might also be suitable for lazy initialization:
TextExt
Another minor hot-spot in the application came from lines 113 to 125 of TextExt. If it is possible to cache the superclass' CSS meta data, rather than create a new list each time, it might offer a small performance boost.
The text was updated successfully, but these errors were encountered: