File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ Performance:
38
38
* Optimize ` Dir[] ` by sorting entries as they are found and grouping syscalls (#2092 , @aardvark179 ).
39
39
* Reduce memory footprint by tracking ` VALUE ` s created during C extension init separately (@aardvark179 ).
40
40
* Rewrote ` ArrayEachIteratorNode ` to optimize performance for a constant-sized array and reduce specializations to 1 general case (#2587 , @MattAlp )
41
+ * Reduce conversion of ` VALUE ` s to native handle during common operations in C extensions (@aardvark179 ).
41
42
42
43
Changes:
43
44
Original file line number Diff line number Diff line change 1
- 12
1
+ 13
Original file line number Diff line number Diff line change @@ -185,13 +185,13 @@ static inline VALUE rb_tr_string_value(VALUE *value_pointer) {
185
185
186
186
ALWAYS_INLINE (static char * rb_tr_string_value_ptr (VALUE * value_pointer ));
187
187
static inline char * rb_tr_string_value_ptr (VALUE * value_pointer ) {
188
- VALUE string = rb_string_value (value_pointer );
188
+ VALUE string = rb_tr_string_value (value_pointer );
189
189
return RSTRING_PTR (string );
190
190
}
191
191
192
192
ALWAYS_INLINE (static char * rb_tr_string_value_cstr (VALUE * value_pointer ));
193
193
static inline char * rb_tr_string_value_cstr (VALUE * value_pointer ) {
194
- VALUE string = rb_string_value (value_pointer );
194
+ VALUE string = rb_tr_string_value (value_pointer );
195
195
RUBY_CEXT_INVOKE ("rb_string_value_cstr_check" , string );
196
196
return RSTRING_PTR (string );
197
197
}
You can’t perform that action at this time.
0 commit comments