[BUG] [Tech Debt] BFS is slower than we'd like #108
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Technical Debt
A conscious decision we have made to reach our goals faster which has resulted in technical debt
#107
Every
Text
struct contains a field:Which contains every decoding (even if it's just 1 decoding).
After each iteration of BFS we loop over all of our vectors we have collected and flatten them from a
Vec<Vec<Text>>
to aVec<Text>
wheretext: Vec<String>
has a single element (meaning we can index into the 0th element [0] and get the result).This introduces some issues:
This is a hack to get us to support this feature.
In the future we might want to look at:
Editing this bit of code so it supports Vectors of Vectors:
https://github.com/bee-san/Ares/blob/1bcc994052db17e7db948055d012810353c76f4d/src/searchers/bfs.rs#LL32-L33C69
Or adding another loop below this code so it turns into a O(n^2) nested loop:
Ares/src/searchers/bfs.rs
Line 26 in 1bcc994
The text was updated successfully, but these errors were encountered: