Firm and technology dynamics in the short- and long-run