What is Nostr?
Itamar Turner-Trauring /
npub1l3h…qxlu
2023-11-20 15:38:01
in reply to nevent1q…dn6h

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

npub1mjjwe95dghhw434k4vsvxs5yl6gcr6kupghf5u0dgcvhga0w94sqe7h2pr (npub1mjj…h2pr) 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