You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Suminda Dharmasena (Jira)" <ji...@apache.org> on 2020/07/13 17:06:00 UTC
[jira] [Created] (GROOVY-9641) Primitive Specialisation
Suminda Dharmasena created GROOVY-9641:
------------------------------------------
Summary: Primitive Specialisation
Key: GROOVY-9641
URL: https://issues.apache.org/jira/browse/GROOVY-9641
Project: Groovy
Issue Type: New Feature
Reporter: Suminda Dharmasena
In Groovy features like closures, generate primitive specialised instances to avoid boxing and unboxing overheads for performance-sensitive and GC sensitive use cases.
Maybe you can have @Specilised annotation to mark classes and methods to apply this.
Scala has: [https://dzone.com/articles/type-specialization-in-scala] but in Groovy this will be slightly different as Object is used in many places. Also instead of annotating parameters in Groovy, it can be applied to all cases within the class or method.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)