What is Nostr?
silmeth 🇺🇦 /
npub1skp…htf4
2023-12-16 18:23:21
in reply to nevent1q…c57v

silmeth 🇺🇦 on Nostr: npub129gva…e4kwg I do `input.trim().split(',')` and then `hash` function for the ...

npub129gvast08lj986yftn7q5qlnj8yfqufxx0m33s9u5xssjm8c64rsve4kwg (npub129g…4kwg) I do `input.trim().split(',')` and then `hash` function for the substrings in part 1 – not sure where’s the bottleneck here (maybe just all the function calls? would need to do some profiling).

For part 2 I do the same (`trim().split(',')`) and then parse into a custom `Instruction` enum which also has some error checking, so my guess is this takes a bit longer (edit: and then there’s interpreting the instructions one by one).
Author Public Key
npub1skp4u4q63gfdufasesqkhjzwalacagvknkdw34hg8jmwuxqzmucqehhtf4