13#ifndef JIT_TOKENIZER_H
14#define JIT_TOKENIZER_H
43typedef struct JITTokenizer JITTokenizer;
62JITTokenizer *jit_tokenizer_create(
const TokenTable *table);
68void jit_tokenizer_destroy(JITTokenizer *tok);
84int jit_tokenizer_classify_keyword(
const JITTokenizer *tok,
85 const char *input,
size_t len);
97bool jit_tokenizer_is_available(
void);
JIT compilation statistics for the tokenizer/keyword trie.
uint64_t compile_time_ns
Wall-clock nanoseconds to compile.
uint64_t code_size_bytes
Approximate generated code size in bytes.
uint32_t keywords_compiled
Number of keywords in the compiled trie.
Thread-safe token lookup table.