Refactored all of the desugaring code to no longer depend on memory being initialized to 0. Everything is about 12% faster now.
This commit is contained in:
parent
d71215d494
commit
ec404ca8fe
36 changed files with 411 additions and 417 deletions
|
|
@ -9,9 +9,8 @@ static bool indirect_isValidCF(void *env) {
|
|||
return p->vtable->isValidCF(p->env);
|
||||
}
|
||||
|
||||
static HCFChoice* desugar_indirect(HAllocator *mm__, void *env) {
|
||||
HParser *p = (HParser*)env;
|
||||
return h_desugar(mm__, p);
|
||||
static void desugar_indirect(HAllocator *mm__, HCFStack *stk__, void *env) {
|
||||
HCFS_DESUGAR( (HParser*)env );
|
||||
}
|
||||
|
||||
static const HParserVtable indirect_vt = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue