From 6844bcc6b4cdc50def1c0d30d4e8b5045fb43443 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sun, 27 Nov 2022 15:15:52 -0800 Subject: MJIT: Use a String buffer in builtin compilers instead of FILE*. Using C.fprintf is slower than String manipulation on memory. I'm going to change the way MJIT writes files, and this is a prerequisite for it. --- builtin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin.h') diff --git a/builtin.h b/builtin.h index 7ad52f44f4..38ad5a1629 100644 --- a/builtin.h +++ b/builtin.h @@ -13,7 +13,7 @@ struct rb_builtin_function { const char * const name; // for jit - void (*compiler)(FILE *, long, unsigned, bool); + void (*compiler)(VALUE, long, unsigned, bool); }; #define RB_BUILTIN_FUNCTION(_i, _name, _fname, _arity, _compiler) {\ -- cgit v1.2.1