acid
acid copied to clipboard
C extension keylib.Key optimization
Conisder:
For KEY_PRIVATE and KEY_COPIED, maintain an extra 3-6 bytes slack at the start of self->p to use for a prefix. Modify to_raw() to utilize this slack if possible, in which case return a buffer object locked over self->p . Further to_raw() calls while the buffer exists should fail.