timmattison / brick-rope

GNU General Public License v2.0
0 stars 1 forks source link

Run transaction validation in parallel #5

Closed timmattison closed 10 years ago

timmattison commented 10 years ago

Doing it serially is too slow. Transaction validation in parallel using a thread pool should give us monstrous performance gains.

timmattison commented 10 years ago

This means validating the scripts in parallel and validating the transactions in parallel. Validating the scripts in parallel gives you a huge speed increase when a transaction has a lot of inputs. Validating the transactions in parallel gives you a huge speed increase when a block has a lot of transactions with only a few inputs.

timmattison commented 10 years ago

Parallel transaction validation in 54b2582cf18f2aca9efee00f63a093373432e9a0. Meaning the inputs inside of a single transaction are validated in parallel.

timmattison commented 10 years ago

Need to use a shared thread pool and parallelize the transactions themselves. Meaning validate multiple transactions at the same time.

timmattison commented 10 years ago

Using a cached thread pool as of eb7a85f1aedc10e7e0bcdd5b625d3d33d32f05b6