commit | e54e093d01cb6ff495644f849520f5464620a337 | [log] [tgz] |
---|---|---|
author | Joel Majano <jmajano@redhat.com> | Mon Feb 14 10:33:25 2022 -0500 |
committer | Alexander Kurtakov <akurtako@redhat.com> | Mon Feb 14 11:21:49 2022 -0500 |
tree | e425babebf4bf5e89f7f3d7a7a4eae386f7fefca | |
parent | c22d5ab616bcd3f7110637ed096666edd0fe8f47 [diff] |
Bug 578739 - Optimize ImageLoader copy to ByteArrayOutputStream Testing was done using three images. A simple screenshot (230kB), and two satellite image samples (15MB and 50MB) from https://effigis.com/en/solutions/satellite-images/satellite-image-samples/. Testing was conducted by timing in code how long the loop in the original code took, and then how long the transferTo() call took. By using transferTo(), instead of a loop the following speed improvements were seen: 1) On the 230kB file, loading was 20.7% faster 2) On the first 15MB Thailand satellite image, loading was 25% faster 3) On the 50MB Germany satellite image, loading was 22.7% faster Change-Id: I8042d7ded51444d4e6fffeca1ac2c5f6be5ad05a Signed-off-by: Joel Majano <jmajano@redhat.com> Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/190786 Tested-by: Alexander Kurtakov <akurtako@redhat.com> Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
Thanks for your interest in this project.
See the following description for how to contribute a feature or a bug fix to SWT.
Information regarding source code management, builds, coding standards, and more and be found under the following link.
Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).
Contact the project developers via the project's “dev” list.
This project uses Bugzilla to track ongoing development and issues.
Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!