Skip to content
  • Giovanni Campagna's avatar
    function: introduce a new system for better caching of marshalling info · 7cf93501
    Giovanni Campagna authored and Philip Chimento's avatar Philip Chimento committed
    The marshalling metadata, as stored in the typelib, is not a format
    friendly to gjs, and requires to have multiple switches and a complex
    logic in the hot path of function calls.
    Instead, extend the current caching mechanism to allow arbitrary
    data to be attached to arguments, and to have it deal with JS arguments,
    rather than a mixture of C and GI arguments.
    
    (Philip Chimento: rebased and fixed coding style and bugs.)
    7cf93501