aboutsummaryrefslogtreecommitdiff
path: root/scripts/benchmark.py
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-03-25 15:33:15 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-03-25 15:33:15 +0000
commita99434929ced7673087458d18c4f78ae8a4c962a (patch)
tree5216d9d2dd0cffe30e2adeb65a8641554f2aa77b /scripts/benchmark.py
parentscripts: generate-alt-random: generate both opaque and transparent sixels (diff)
sixel: abuse wmemset() when initializing a freshly allocated image buffer
wmemset() is heavily optimized, and in some cases, *much* faster than manually initializing the new image pixels. Furthermore, assume calloc() is better at initializing memory to zero, and use that when initializing new pixels in a transparent image.
Diffstat (limited to 'scripts/benchmark.py')
0 files changed, 0 insertions, 0 deletions