-
Notifications
You must be signed in to change notification settings - Fork 156
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 improvements #80
Commits on Jan 8, 2019
-
Use a BitSet instead of a nested arrays
Depending on the width of the image a lot of int[] have been created, a BitSet with a size of width * height is a better choice here. It uses less memory and is faster than determinating a pixels transparency each time.
joerg1985 committedJan 8, 2019 Configuration menu - View commit details
-
Copy full SHA for 145f771 - Browse repository at this point
Copy the full SHA 145f771View commit details -
Avoid creation of thousands Point objects and a HashSet
Create a copy of the original raster to do the shouldPad test and instant update the raster. This avoids a lot of object creation, hash calculation and garbage collection needed to maintain the HashSet.
joerg1985 committedJan 8, 2019 Configuration menu - View commit details
-
Copy full SHA for 258f0dc - Browse repository at this point
Copy the full SHA 258f0dcView commit details -
Moved the boundary check outside the loop
It is more efficent to check the boudings outside the loop
joerg1985 committedJan 8, 2019 Configuration menu - View commit details
-
Copy full SHA for 4e882d9 - Browse repository at this point
Copy the full SHA 4e882d9View commit details
Commits on Jan 10, 2019
-
Configuration menu - View commit details
-
Copy full SHA for bc06074 - Browse repository at this point
Copy the full SHA bc06074View commit details -
Find collisions faster using a fast path
we expect the none transparent pixel to be around the center. we check a 5 * 5 raster first to move faster to the center. after this we still check all pixels to get a complete result.
joerg1985 committedJan 10, 2019 Configuration menu - View commit details
-
Copy full SHA for 35dd968 - Browse repository at this point
Copy the full SHA 35dd968View commit details
Commits on Jan 12, 2019
-
joerg1985 committed
Jan 12, 2019 Configuration menu - View commit details
-
Copy full SHA for de13bce - Browse repository at this point
Copy the full SHA de13bceView commit details
Commits on Jan 13, 2019
-
addes CollisionRaster.lineIsTransparent to improved padding
if padding is used there are a lot of transparent lines
joerg1985 committedJan 13, 2019 Configuration menu - View commit details
-
Copy full SHA for e0c4372 - Browse repository at this point
Copy the full SHA e0c4372View commit details -
optimzied the fast path of collide
joerg1985 committedJan 13, 2019 Configuration menu - View commit details
-
Copy full SHA for 37d2933 - Browse repository at this point
Copy the full SHA 37d2933View commit details -
the background masks all none usable pixels and we can only check thi…
…s raster
joerg1985 committedJan 13, 2019 Configuration menu - View commit details
-
Copy full SHA for 7e38a54 - Browse repository at this point
Copy the full SHA 7e38a54View commit details -
ensure the word is inside the background
joerg1985 committedJan 13, 2019 Configuration menu - View commit details
-
Copy full SHA for 9da2642 - Browse repository at this point
Copy the full SHA 9da2642View commit details -
implemented the circle background
joerg1985 committedJan 13, 2019 Configuration menu - View commit details
-
Copy full SHA for ce86d0a - Browse repository at this point
Copy the full SHA ce86d0aView commit details -
fixed the rectange collision mode
joerg1985 committedJan 13, 2019 Configuration menu - View commit details
-
Copy full SHA for a5cd279 - Browse repository at this point
Copy the full SHA a5cd279View commit details
Commits on Jan 14, 2019
-
don't let the angles be effected by the parallel creation of words
joerg1985 committedJan 14, 2019 Configuration menu - View commit details
-
Copy full SHA for 18651c7 - Browse repository at this point
Copy the full SHA 18651c7View commit details -
render the rotated text into the buffered image
this improves the image quality and removes intermediate step
joerg1985 committedJan 14, 2019 Configuration menu - View commit details
-
Copy full SHA for a82dd6b - Browse repository at this point
Copy the full SHA a82dd6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 608f7c6 - Browse repository at this point
Copy the full SHA 608f7c6View commit details
Commits on Jan 17, 2019
-
reverted concurrent creation of words
the concurrent creation of words could break client code
joerg1985 committedJan 17, 2019 Configuration menu - View commit details
-
Copy full SHA for ec2e061 - Browse repository at this point
Copy the full SHA ec2e061View commit details -
the graphics object used to create the font metrics had other RenderingHints than the graphics object to write the text, if the default values of the used jvm did not have the TEXT_ANTIALIASING set to TEXT_ANTIALIAS_LCD_HRGB.
joerg1985 committedJan 17, 2019 Configuration menu - View commit details
-
Copy full SHA for 2071d17 - Browse repository at this point
Copy the full SHA 2071d17View commit details -
added tests and fixed small issues
joerg1985 committedJan 17, 2019 Configuration menu - View commit details
-
Copy full SHA for 534fa04 - Browse repository at this point
Copy the full SHA 534fa04View commit details
Commits on Jan 19, 2019
-
mask pixels outside the given image
joerg1985 committedJan 19, 2019 Configuration menu - View commit details
-
Copy full SHA for 5a785b8 - Browse repository at this point
Copy the full SHA 5a785b8View commit details -
improved speed of padding with large paddings
joerg1985 committedJan 19, 2019 Configuration menu - View commit details
-
Copy full SHA for faf2310 - Browse repository at this point
Copy the full SHA faf2310View commit details
Commits on Jan 26, 2019
-
fixed the mask of the background
joerg1985 committedJan 26, 2019 Configuration menu - View commit details
-
Copy full SHA for 56c6f86 - Browse repository at this point
Copy the full SHA 56c6f86View commit details -
use BitSet.nextSetBit to find collisions
joerg1985 committedJan 26, 2019 Configuration menu - View commit details
-
Copy full SHA for fd08fc7 - Browse repository at this point
Copy the full SHA fd08fc7View commit details
Commits on Jan 31, 2019
-
joerg1985 committed
Jan 31, 2019 Configuration menu - View commit details
-
Copy full SHA for 1ca095b - Browse repository at this point
Copy the full SHA 1ca095bView commit details -
fixed the calculation of the maximum spiral radius and added a test t…
…o it the maximum spiral radius might be bigger or smaller than the image width, e.g. if the image height is bigger than the width.
joerg1985 committedJan 31, 2019 Configuration menu - View commit details
-
Copy full SHA for ee9ad38 - Browse repository at this point
Copy the full SHA ee9ad38View commit details
Commits on Feb 3, 2019
-
don't try to place a word on the same position twice
this happened when the offset was 0
joerg1985 committedFeb 3, 2019 Configuration menu - View commit details
-
Copy full SHA for c7422cf - Browse repository at this point
Copy the full SHA c7422cfView commit details
Commits on Feb 6, 2019
-
joerg1985 committed
Feb 6, 2019 Configuration menu - View commit details
-
Copy full SHA for f79d513 - Browse repository at this point
Copy the full SHA f79d513View commit details