aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-03-14 09:40:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-03-14 09:40:29 +0000
commit29709c696626ac4a024ae3f5aece8161527bbb56 (patch)
tree569ee0d074b47df07e4b12219ac51648755b7086 /scripts
parentMerge branch 'drain-pty-when-client-terminates' (diff)
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.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate-alt-random-writes.py2
1 files changed, 1 insertions, 1 deletions
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