3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
|
# File 'ext/multi_compress/multi_compress.c', line 3150
static VALUE zstd_train_dictionary(int argc, VALUE *argv, VALUE self) {
// #if defined(__APPLE__) && (defined(__arm64__) || defined(__aarch64__))
// rb_raise(eUnsupportedError,
// "Zstd dictionary training is temporarily disabled on arm64-darwin "
// "because the current vendored trainer path crashes on this platform");
// #endif
VALUE samples, opts;
rb_scan_args(argc, argv, "1:", &samples, &opts);
reject_algorithm_keyword(opts);
VALUE size_val = opt_get(opts, sym_cache.size);
return train_dictionary_internal(samples, size_val, ALGO_ZSTD);
}
|