From ef7fa8bd0e174b8a96681abdce57b5b6afbe5c32 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 10 Oct 2023 10:27:29 -0700 Subject: [PATCH] Integer#times is not a C method [ci skip] --- doc/yjit/yjit.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/yjit/yjit.md b/doc/yjit/yjit.md index c3fc4fc9d6..0aeb14a69a 100644 --- a/doc/yjit/yjit.md +++ b/doc/yjit/yjit.md @@ -250,7 +250,7 @@ This section contains tips on writing Ruby code that will run as fast as possibl - Avoid classes that wrap objects if you can - Avoid methods that just call another method, trivial one liner methods - Try to write code so that the same variables always have the same type -- Use `while` loops if you can, instead of C methods like `Integer#times` and `Array#each` +- Use `while` loops if you can, instead of C methods like `Array#each` - This is not idiomatic Ruby, but could help in hot methods - CRuby method calls are costly. Avoid things such as methods that only return a value from a hash or return a constant.