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
29
29
/**
30
30
* JSONzip is a compression scheme for JSON text.
31
31
* @author JSON.org
32
- * @version 2014-05-03
32
+ * @version 2014-05-20
33
33
*/
34
34
35
35
/**
@@ -53,6 +53,11 @@ public class Huff implements None, PostMortem {
53
53
*/
54
54
private final int domain ;
55
55
56
+ /**
57
+ * The number of characters to process before generation is no longer done.
58
+ */
59
+ public static final int education = 1000000 ;
60
+
56
61
/**
57
62
* An array that maps symbol values to symbols.
58
63
*/
@@ -140,7 +145,7 @@ public boolean postMortem(PostMortem pm) {
140
145
*/
141
146
public Huff (int domain ) {
142
147
this .domain = domain ;
143
- this .toLearn = 1000000 ;
148
+ this .toLearn = education ;
144
149
int length = domain * 2 - 1 ;
145
150
this .symbols = new Symbol [length ];
146
151
You can’t perform that action at this time.
0 commit comments