Skip to content

Commit 1272d80

Browse files
education
1 parent a9a0762 commit 1272d80

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

zip/Huff.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)