|
25 | 25 |
|
26 | 26 | import fileinput, re, os, sys, operator
|
27 | 27 |
|
28 |
| -bytes_old = 0 |
29 |
| -bytes_new = 0 |
30 |
| - |
31 | 28 | preamble = '''// Copyright 2012-2016 The Rust Project Developers. See the COPYRIGHT
|
32 | 29 | // file at the top-level directory of this distribution and at
|
33 | 30 | // http://rust-lang.org/COPYRIGHT.
|
@@ -379,8 +376,6 @@ def compute_trie(rawdata, chunksize):
|
379 | 376 | return (root, child_data)
|
380 | 377 |
|
381 | 378 | def emit_bool_trie(f, name, t_data, is_pub=True):
|
382 |
| - global bytes_old, bytes_new |
383 |
| - bytes_old += 8 * len(t_data) |
384 | 379 | CHUNK = 64
|
385 | 380 | rawdata = [False] * 0x110000
|
386 | 381 | for (lo, hi) in t_data:
|
@@ -433,7 +428,6 @@ def emit_bool_trie(f, name, t_data, is_pub=True):
|
433 | 428 | f.write("\n ],\n")
|
434 | 429 |
|
435 | 430 | f.write(" };\n\n")
|
436 |
| - bytes_new += 256 + 992 + 256 + 8 * len(r3) + len(r5) + 8 * len(r6) |
437 | 431 |
|
438 | 432 | def emit_property_module(f, mod, tbl, emit):
|
439 | 433 | f.write("pub mod %s {\n" % mod)
|
@@ -543,4 +537,3 @@ def emit_norm_module(f, canon, compat, combine, norm_props):
|
543 | 537 | # normalizations and conversions module
|
544 | 538 | emit_norm_module(rf, canon_decomp, compat_decomp, combines, norm_props)
|
545 | 539 | emit_conversions_module(rf, to_upper, to_lower, to_title)
|
546 |
| - #print 'bytes before = %d, bytes after = %d' % (bytes_old, bytes_new) |
0 commit comments