[WIP] Cleanp the code of change detection

- `/perf`
- `/lib`