Partial inlining

Inlining doesn't have to be all-or-nothing