scripts: generate-alt-random: reduce number of emitted sixels

After emitting multiple color bands for each sixel row, the increased
amount of sixel data shifted the balance in the profiling data,
causing a performance regression in regular ASCII handling.
This commit is contained in:
Daniel Eklöf 2021-03-14 10:40:29 +01:00
parent 4fca142f71
commit 29709c6966
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -168,7 +168,7 @@ def main():
last_pos = None
last_size = None
for _ in range(100):
for _ in range(20):
if last_pos is not None and random.randrange(2):
# Overwrite last sixel. I.e. use same position and
# size as last sixel