-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Description
Feature request
Please include the following information:
Is your feature request related to a problem? Please describe.
When I graalify the Kotlin compiler, String.length isn't inlined. This is surprising because it's a trivial function. In my image, this function takes about 2% of profiled runtime.
Describe the solution you'd like.
@AlwaysInline String.length()
Describe who do you think will benefit the most.
Users of GraalVM apps
Describe alternatives you've considered.
Maybe there's something more clever? I'm not sure.
Additional context.
When I try to add this feature myself, I get an error saying a substitution for the function already exists, which conflicts.
Express whether you'd like to help contributing this feature
Not really.