-
Notifications
You must be signed in to change notification settings - Fork 89
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
TextGrid.seedFillOld takes considerable amount of time #66
Comments
Using an If needed, we could probably remove duplicates once |
Hello, thanks for looking into this. By this point I'm also unfamiliar with the code (haven't touched it for ages!) but I'm wondering whether |
Hello @stathissideris! Thanks for you reply. When using seedFillOld
seedFill
Using @Override
public int compareTo(Cell o) {
if (this.x == o.x) {
return this.y - o.y;
}
return this.x - o.x;
} Using |
…peed up TextGrid#seedFillOld
…peed up TextGrid#seedFillOld
@stathissideris I wonder if you would like to hand over or add more contributors to this project? Pepijn has done great work (and fixed a couple of issues) on his fork: https://github.com/pepijnve/ditaa PlantUML is using ditaa but there are some major issues (infinite loops, exceptions, inefficient code) that can be used as a Denial of Service (DoS) attack. |
I understand this won't be merged, but the |
The following diagram takes more than 30 seconds to produce an image:
Here's the flamegraph:
As you can see 80% of the time is spent in the
TextGrid.seedFillOld
method:ditaa/src/java/org/stathissideris/ascii2image/text/TextGrid.java
Lines 1354 to 1383 in f2286c4
I'm not familiar with the code base but maybe it can be optimized?
Let me know if you need more information, I will gladly provide them 🤗
The text was updated successfully, but these errors were encountered: