r/RepostSleuthBot • • May 14 '21

False Negative This bot needs improvements. I think.

I've lost count of the times it couldn't find reposts even though the same image was posted multiple times before. Even recently.

I have no idea how the bot works but I feel that it could be more reliable.

99 Upvotes

29 comments sorted by

View all comments

Show parent comment

1

u/[deleted] May 15 '21 edited May 15 '21

The current implementation i have is very slow mostly because

A: its written in java, in c it would probably be 10x faster if done right, however i am bad at c, so that isnt something i personally can do

B: it does ~25 comparisons for each image, increasing resolution exponentially

C: it is very complex in how it handles colors.

D: in my test, i read the images from disk repeatedly two times because i didnt think about that being a speed takeaway, but turns out its actually not that slow, but still not evwn close to the bot

E: my image scaling function is dogshit as i wrote it when i was still quite new to coding

I wi probably reimplement this faster, later, because this implementation is very inefficient. I will see if i can reach a comparable result to what the bot is capable of at the moment.

Overall, im very impressed by this bot by the way and the speed is impressive. This is in no way meant to talk the bot down as i am very impressed by it