introduce bitloops

This commit is contained in:
mike
2026-01-17 16:17:18 +01:00
parent bfa19ec585
commit c76d463c8c
6 changed files with 5 additions and 24 deletions

View File

@@ -10,10 +10,7 @@ public final class DictDataL2 {
static final int POS_LEN = 208;
private static long[] words() {
long[] out = new long[WORDS_LEN];
int k = 0;
k = copy(out, k, DictDataL2W0.DATA);
return out;
return DictDataL2W0.DATA;
}
private static long[] posFlat() {

View File

@@ -10,10 +10,7 @@ public final class DictDataL3 {
static final int POS_LEN = 1326;
private static long[] words() {
long[] out = new long[WORDS_LEN];
int k = 0;
k = copy(out, k, DictDataL3W0.DATA);
return out;
return DictDataL3W0.DATA;
}
private static long[] posFlat() {

View File

@@ -10,10 +10,7 @@ public final class DictDataL4 {
static final int POS_LEN = 4264;
private static long[] words() {
long[] out = new long[WORDS_LEN];
int k = 0;
k = copy(out, k, DictDataL4W0.DATA);
return out;
return DictDataL4W0.DATA;
}
private static long[] posFlat() {

View File

@@ -10,10 +10,7 @@ public final class DictDataL5 {
static final int POS_LEN = 9100;
private static long[] words() {
long[] out = new long[WORDS_LEN];
int k = 0;
k = copy(out, k, DictDataL5W0.DATA);
return out;
return DictDataL5W0.DATA;
}
private static long[] posFlat() {

View File

@@ -10,10 +10,7 @@ public final class DictDataL6 {
static final int POS_LEN = 19500;
private static long[] words() {
long[] out = new long[WORDS_LEN];
int k = 0;
k = copy(out, k, DictDataL6W0.DATA);
return out;
return DictDataL6W0.DATA;
}
private static long[] posFlat() {

View File

@@ -38,10 +38,6 @@ public final class DictJavaGeneratorMulti {
// Aggregator
writeAggregator(outDir, pkg, "DictData", dict.length());
//var csv = Paths.get("nl_score_hints_v3.csv");
//var idx = Paths.get("nl_score_hints_v3.idx");
//ScopedValue.where(CsvIndexService.SC, new CsvIndexService(csv, idx)).run(() -> generateHintShards(dict, builders, outDir));
System.out.println("Generated sources into: " + outDir.toAbsolutePath());
}