fpco / inline-c

284 stars 51 forks source link

Improve the performance calling c++ #140

Closed junjihashimoto closed 1 year ago

junjihashimoto commented 1 year ago

This PR speeds up c++ calls. It adds unsafe call to c++ calls. This saves about 100ns per call. And it reduces the number of times to allocate the data area for receiving exceptions and shorten it by about 100ns. In my use case, it changes the cost per call from 250ns to 50ns.

bitonic commented 1 year ago

Thank you!

junjihashimoto commented 1 year ago

Thank you, too.

bitonic commented 1 year ago

I'll put a release out this evening.

On Wed, 26 Oct 2022 at 07:56, junji hashimoto @.***> wrote:

Thank you, too.

— Reply to this email directly, view it on GitHub https://github.com/fpco/inline-c/pull/140#issuecomment-1291583358, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEHYORVLSXEDCNY6PRSL2LWFDIY5ANCNFSM6AAAAAARMTGOHQ . You are receiving this because you modified the open/close state.Message ID: @.***>