Separate computing candidates from displaying them to get rid of some
flicker (#380).