This patches improves the hashing subsequences in CompoundStmts by incrementally hashing all subsequences with the same starting position. This results in a reduction of the time for this constraint while running over SQLite from 1.10 seconds to 0.55 seconds (-50%).
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This looks negligible compared to compilation time.
I wonder if we're now scalable enough to try finding whole-translation-unit clones.
lib/Analysis/CloneDetection.cpp | ||
---|---|---|
402 | Hmm, is 8 enough here? People often write large functions. Maybe bump to 32 or 64? |
Hmm, is 8 enough here? People often write large functions. Maybe bump to 32 or 64?