diff options
author | David Robillard <d@drobilla.net> | 2014-10-01 15:50:28 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-10-01 15:50:28 +0000 |
commit | b10ae60816015d85ed9aa27fdb98d1b0f6bfdf64 (patch) | |
tree | 5e2307f443633b9c4bbf8bc96cfeaff5ff2337f8 /wscript | |
parent | dee23c2058fd33e14610ceda277c11e4d8ce768b (diff) | |
download | zix-b10ae60816015d85ed9aa27fdb98d1b0f6bfdf64.tar.gz zix-b10ae60816015d85ed9aa27fdb98d1b0f6bfdf64.tar.bz2 zix-b10ae60816015d85ed9aa27fdb98d1b0f6bfdf64.zip |
Improve ZixPatree with more compact index.
git-svn-id: http://svn.drobilla.net/zix/trunk@95 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -232,10 +232,11 @@ def bench(ctx): import random out = open(filename, 'w') for i in xrange(1 << 20): - wordlen = random.randrange(1, 128) + wordlen = random.randrange(1, 64) + word = '' for j in xrange(wordlen): - out.write(chr(random.randrange(ord('A'), ord('Z')))) - out.write(' ') + word += chr(random.randrange(ord('A'), min(ord('Z'), ord('A') + j + 1))) + out.write(word + ' ') out.close() subprocess.call(['test/dict_bench', 'gibberish.txt']) |