From 29709c696626ac4a024ae3f5aece8161527bbb56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 14 Mar 2021 10:40:29 +0100 Subject: [PATCH] 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. --- scripts/generate-alt-random-writes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-alt-random-writes.py b/scripts/generate-alt-random-writes.py index 2a3b23a5..63becdcf 100755 --- a/scripts/generate-alt-random-writes.py +++ b/scripts/generate-alt-random-writes.py @@ -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