BlockstreamResearch / simfony

Rust-like high-level language that compiles down to Simplicity bytecode. Work in progress.
19 stars 6 forks source link

Implement fmt::Display for U256 #46

Closed uncomputable closed 2 months ago

uncomputable commented 2 months ago

Do you mean we should use [u8; 78] instead of Vec::with_capacity(78)?

apoelstra commented 2 months ago

@uncomputable oh, lol, yeah, that's a great idea.

I had meant that we should change the whole algorithm somehow to compute the digits in the correct order. But just replacing the vec with an array is way simpler and probably more efficient.