From 720411899a973be7c40d02f9db24f616d6a16afe Mon Sep 17 00:00:00 2001 From: AN Long Date: Mon, 7 Jul 2025 01:15:00 +0900 Subject: [PATCH] Update limitations.md to add behavior on small hash --- doc/limitations.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/limitations.md b/doc/limitations.md index bbe33707e..505a9c4b1 100644 --- a/doc/limitations.md +++ b/doc/limitations.md @@ -213,3 +213,7 @@ Prints `:append`. #### mruby [3.5.0 (2025-04-28)] Nothing printed (since `include` does not call `append_features` internally). + +## No `#hash` call for small hashes + +For performance reasons, mruby avoids calling the `#hash` method on keys when a hash table is small. This means that custom `#hash` methods on key objects may not be executed.