From: nobu@... Date: 2014-07-23T12:45:05+00:00 Subject: [ruby-core:63975] [ruby-trunk - Feature #10082] [PATCH] add ZALLOC* macros to reduce ALLOC + MEMZERO calls Issue #10082 has been updated by Nobuyoshi Nakada. Tadashi Saito wrote: > (My only concern is that zlib uses "zalloc" as its API, but we will > not have to worry about it: > https://github.com/ruby/ruby/blob/543b402/ext/zlib/zlib.c#L609 ) How about `0ALLOC()`? ;) ---------------------------------------- Feature #10082: [PATCH] add ZALLOC* macros to reduce ALLOC + MEMZERO calls https://bugs.ruby-lang.org/issues/10082#change-47993 * Author: Eric Wong * Status: Open * Priority: Normal * Assignee: Koichi Sasada * Category: core * Target version: current: 2.2.0 ---------------------------------------- This reduces code and binary sizes. ZALLOC macros are accessible via public API for exts OK to add this API? It should simplify some code and reduce typos. ---Files-------------------------------- zalloc.patch (7.4 KB) -- https://bugs.ruby-lang.org/