IBDecodable / IBLinter

A linter tool for Interface Builder
MIT License
950 stars 40 forks source link

Cache #124

Closed kateinoigakukun closed 4 years ago

kateinoigakukun commented 4 years ago

IBLinter checks whole files every time but there are many unnecessary processes when most of them are not changed.

This PR adds lint cache for each IB file. In my project, IBLinter took 7 sec every time but this change reduced it to 2 sec when there is cache.

kateinoigakukun commented 4 years ago

@phimage Your understanding is almost correct. As you said, we should re-check if IBLinter version changed. So I use the following values to re-check files.

If the top two are changed, IBLinter ignore existing cache files and re-check all files again.

kateinoigakukun commented 4 years ago

@phimage Thank you for reviewing 🦄