I am using ALE plugin with clangtidy linter to lint my C code and whenever I save my file and this linter gets activated it takes around 3-4 seconds for it to check for errors. File in question is around 1000 lines long and I am using a compilation database (compile_commands.json file). Is this the default behaviour of clangtidy? Is it just slow? Or what could be the problem?
Any help is highly appreciated. Thanks