CashScript / cashscript

⚖️ Easily write and interact with Bitcoin Cash smart contracts
https://cashscript.org
MIT License
111 stars 77 forks source link

Benchmarking transaction building #169

Closed mr-zwets closed 8 months ago

mr-zwets commented 8 months ago

Transaction building seemed slow from testing during development of the Cash-Ninjas project.

const rawTransactionHex = await transaction.build();
Execution time build tx: 3404 ms

We should do some benchmarking to see why the transaction building is taking long (atleast in this specific case).

image

mr-zwets commented 8 months ago

fixed with PR #166 in v0.9.2, now takes just 4ms to call transaction.build() !!