-
Notifications
You must be signed in to change notification settings - Fork 56
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
lower performance compared to exhaustive search ? #17
Comments
#include #include "aho_corasick.hpp" std::chrono::steady_clock::time_point time_start_point() { double time_duration(const std::chrono::steady_clock::time_point& start) { int main(int argc, const char * argv[]) // create instance // begin searching auto prepare_time = time_duration(time_start);
} } |
the outputs were as follows: construct time: 28.581 |
Next, i did an experiment about exhaustive search using Python: `import os if name == "main":
` the output was: match costing time: 0.347 Obviously, ac machine (53.299 ms) performed worse than exhaustive search (0.347ms) under the same conditions. I am so confused, and wonder if there was any mistake about my experiments ?? |
please do performance after a few random search |
Hello, I got a performance problem about the ac machine of this project, and the following was my job.
First i constructed a trie tree with 2700+ patterns and did something about string-matching.
The text was updated successfully, but these errors were encountered: