Why Nostr? What is Njump?
2023-11-20 15:38:01
in reply to

Itamar Turner-Trauring on Nostr: npub1mjjwe…7h2pr For speed, the first answer is almost always another question: do ...

For speed, the first answer is almost always another question: do you have evidence that this is a bottleneck? If it's 1% of your program runtime, making it twice as fast won't make much of a difference...

If you have evidence that this part of the code is a bottleneck, easiest thing to do is just measure the two versions and compare. E.g. with %timeit magic in IPython/Jupyter: https://ipython.readthedocs.io/en/stable/interactive/magics.html#magic-timeit
Author Public Key
npub1l3hcw0upjp59wljh5l5e70uzter9kez5t4d6vvl657w4u685alfs52qxlu