3 ms·
If i gave you a search algorithm with a big db then asked if it could done quicker would you prefer to spin up more cpu's or try to improve the algorithm?
by mitchellberry 9y ago
If i gave you a search algorithm with a big db then asked if it could done quicker would you prefer to spin up more cpu's or try to improve the algorithm?
- pmorici 9y agoI would spin up more CPUs. Because changing code in the near term is expensive and hard. Spinning up more CPUs is cheap and easy and ensures my company remains successful while I optimize the algorithm. Using your analogy Bitcoin Core is saying they are going to shut down Bitcoin service to all new users until they implement a new algorithm that hasn't been proven yet and is still years away from being ready.
- mattxxx 9y ago^ Exactly. The answer should almost always be spin up more cpu's.
- andoriyu 9y agoHold on, this is a bad analogy. First, the issue right here is writing to disk, not seek and read. Second, bitcoin network has enormous processing power right now. It's just whole one block every ten minutes with a size of 1 megabyte isn't going to scale. Just think about it you have all this power, but you only allowed to write 1mb in 10 minutes. So yeah, if it was my database I'd reduce commit time and increase commit size. Remember blockchain is nothing more than a distributed append-only database. Personally, I think bitcoin is good in place of wire transfer/SWIFT, but right now it can't do that because it's too volatile. I think banks having their own blockchains (i.e. quorum from Chase) is what is going to happen.
- QML 9y agoDepends on the search algorithm; if it can be parallelized, then modify the algorithm to take advantages of multiple CPUs. If not, then start throwing more threads at it. In Bitcoin’s case, I don’t think we have a lack of CPUs though.