Why Nostr? What is Njump?
2023-12-16 18:23:21
in reply to

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

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