Improve memory efficiency via plain ints for length
This commit is contained in:
@@ -30,7 +30,7 @@ struct ucl_object *ucl_evaluate_builtin_form(struct ucl *state, struct ucl_scope
|
||||
struct ucl_object *fun_forms = ucl_cdr(state, fun);
|
||||
int i = 0;
|
||||
FOREACH_LIST(fun_arg_syms, iter, sym) {
|
||||
ucl_scope_put(state, fun_scope, sym->symbol, ucl_list_nth(state, evaluated_list, i + 1));
|
||||
ucl_scope_put(state, fun_scope, sym->symbol, ucl_list_nth(evaluated_list, i + 1));
|
||||
i++;
|
||||
}
|
||||
result = ucl_progn(state, fun_scope, fun_forms);
|
||||
@@ -98,3 +98,7 @@ struct ucl_object *ucl_evaluate_in_scope(struct ucl *state, struct ucl_scope *sc
|
||||
struct ucl_object *ucl_evaluate(struct ucl *state, struct ucl_object *obj) {
|
||||
return ucl_evaluate_in_scope(state, state->global_scope, obj);
|
||||
}
|
||||
|
||||
struct ucl_object *ucl_evaluate_progn(struct ucl *state, struct ucl_object *forms) {
|
||||
return ucl_progn(state, state->global_scope, forms);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user