dtolnay/cxx

Figure out where to put #[inline]

Open

#146 opened on Apr 25, 2020

 (0 comments) (0 reactions) (0 assignees)Rust (253 forks)batch import
help wanted

Repository metrics

Stars
 (4,472 stars)
PR merge metrics
 (Avg merge 8m) (3 merged PRs in 30d)

Description

In the Rust code generator we currently emit some shims that do nothing more than cast between smart pointers and raw pointers and then dispatch to the appropriate extern "C" function.

These shims should probably be marked #[inline] so that callers are able to directly call the extern "C" function themselves, but ideally I'd like at least one performance measurement showing a benefit before going forward with the change.

Contributor guide