summaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-08-24 10:16:15 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-08-24 10:16:15 -0700
commit3c0df649d00d55a31e6f92c29bc3976fdba27f8e (patch)
tree757e2dd23ee7b2a72ea7e40b34c72ac06522b89c /struct.c
parent8a10829e5e35e5b0721260e0a7b31554ec21d766 (diff)
downloadtxr-3c0df649d00d55a31e6f92c29bc3976fdba27f8e.tar.gz
txr-3c0df649d00d55a31e6f92c29bc3976fdba27f8e.tar.bz2
txr-3c0df649d00d55a31e6f92c29bc3976fdba27f8e.zip
sha256/md5: hash string more efficiently.
* chksum.c (sha256_str, md5_str): Don't construct a byte input stream for hashing a string. Just convert whole thing to temporary UTF-8, hash, and free.
Diffstat (limited to 'struct.c')
0 files changed, 0 insertions, 0 deletions