Project

General

Profile

« Previous | Next » 

Revision 8f17b3bd

Added by Eregon (Benoit Daloze) over 1 year ago

[ruby/prism] Avoid extra String copies in the FFI backend

  • For Prism.parse_file the file contents would be read as native, then
    converted to a Ruby String, then converted to a native String for
    pm_serialize_parse().
  • Refactor the logic to always use a pm_string for the source code and
    pass that to other native functions.

https://github.com/ruby/prism/commit/9002b3c47d