[compiler-hacking] @inline attribute?
Jeremie Dimino
jdimino at janestreet.com
Thu Oct 30 16:47:06 GMT 2014
On Thu, Oct 30, 2014 at 4:27 PM, Mark Shinwell <mark at three-tuns.net> wrote:
> > Why would you need something like that ?
>
> For a function where 99% of the time it takes a short code path, and for
> 1% of the time takes the long one, it's probably going to give better
> cache performance if the 1% code path is taken out into another,
> non-inlinable function.
>
Yeah, for instance Hashtbl.find and growing the table.
--
Jeremie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/cam-compiler-hacking/attachments/20141030/05f207eb/attachment.html>
More information about the Cam-compiler-hacking
mailing list