Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 279428 Details for
Bug 549644
[GTK3] Shell dispose slowdown
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Snippet
SnippetControlExampleDispose.java (text/x-java), 1.10 KB, created by
Patrick Tasse
on 2019-07-29 15:57:07 EDT
(
hide
)
Description:
Snippet
Filename:
MIME Type:
Creator:
Patrick Tasse
Created:
2019-07-29 15:57:07 EDT
Size:
1.10 KB
patch
obsolete
>import org.eclipse.swt.SWT; >import org.eclipse.swt.examples.controlexample.ControlExample; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Shell; > >public class SnippetControlExampleDispose { > > private static final int NUM_ITERATIONS = 1000; > > public static void main(String[] args) { > Display display = new Display(); > System.out.println("gtk version: " + System.getProperty("org.eclipse.swt.internal.gtk.version")); > System.out.println("SWT version: " + SWT.getVersion()); > System.out.println(); > > for (int i = 1; i <= NUM_ITERATIONS; i++) { > final Shell shell = new Shell(display, SWT.SHELL_TRIM); > shell.setLayout(new FillLayout()); > long t1 = System.currentTimeMillis(); > new ControlExample(shell); > long t2 = System.currentTimeMillis(); > System.out.print(String.format("ControlExample[%3d]\tcreate %4d ms\t", i, (t2-t1))); > long t3 = System.currentTimeMillis(); > shell.dispose(); > long t4 = System.currentTimeMillis(); > System.out.println(String.format("dispose %4d ms", (t4-t3))); > } > System.out.println(); > display.dispose(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 549644
: 279428 |
279462
|
279474