File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ of this software and associated documentation files (the "Software"), to deal
2929/**
3030 * JSONzip is a compression scheme for JSON text.
3131 * @author JSON.org
32- * @version 2014-05-03
32+ * @version 2014-05-20
3333 */
3434
3535/**
@@ -53,6 +53,11 @@ public class Huff implements None, PostMortem {
5353 */
5454 private final int domain ;
5555
56+ /**
57+ * The number of characters to process before generation is no longer done.
58+ */
59+ public static final int education = 1000000 ;
60+
5661 /**
5762 * An array that maps symbol values to symbols.
5863 */
@@ -140,7 +145,7 @@ public boolean postMortem(PostMortem pm) {
140145 */
141146 public Huff (int domain ) {
142147 this .domain = domain ;
143- this .toLearn = 1000000 ;
148+ this .toLearn = education ;
144149 int length = domain * 2 - 1 ;
145150 this .symbols = new Symbol [length ];
146151
You can’t perform that action at this time.
0 commit comments