Bitcoin has a built-in mechanism to counteract improvements in hashing speed (either because of hardware getting faster, algorithmic improvements, or more hardware getting devoted to hashing).
See https://en.wikipedia.org/wiki/Bitcoin#Mining: “The difficulty of generating a block is deterministically adjusted based on the mining power on the network by changing the difficulty target, which is recalibrated every 2,016 blocks (approximately two weeks) to maintain an average time of ten minutes between new blocks“
I think there’s more than enough range available here to handle a million-fold increase in hashing power.