ohler55 / ox

Ruby Optimized XML Parser
http://www.ohler.com/ox
MIT License
900 stars 76 forks source link

Use rb_str_intern() to get symbol instead of rb_funcall() #339

Closed Watson1978 closed 1 year ago

Watson1978 commented 1 year ago

There is an API to get a Symbol object from a String object.

The same API is eventually called with rb_funcall(), but it might have some overhead. https://github.com/ruby/ruby/blob/master/string.c#L11988