counsel.el (counsel-M-x): Don't rebuild cache on every invocation. #1085
By guarding the cache rebuilding only if new commands are detected we can increase the speed of
Thanks (and keep up the awesome work!)
The `smex-ido-cache' needs only be rebuild when new commands has been detected. So, check first if new commands available and then update smex. This should speed up sequential invocations of `counsel-M-x'.