[
https://issues.apache.org/jira/browse/DELTASPIKE-1161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15312936#comment-15312936
]
Romain Manni-Bucau commented on DELTASPIKE-1161:
------------------------------------------------
[~tandraschko] not so sure about the context but select can be cached (the new
Instance until it gets unambiguous) and @Inject can be used with @Dependent
relying on Provider. It will require runtime resolution and instantiation but
we can ensure we do it cleverly I guess.
> [perf] avoid Instance#Select
> ----------------------------
>
> Key: DELTASPIKE-1161
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1161
> Project: DeltaSpike
> Issue Type: Improvement
> Components: Data-Module
> Reporter: Thomas Andraschko
> Assignee: Thomas Andraschko
> Fix For: 1.6.2
>
>
> average execution time of 100.000 save calls
> - Instance#select: 46119ms
> - BeanProvider: 42231ms
> - @Inject: 37771ms
> @Inject will break dependent-scoped but there is currently not real-world
> usecase
> We could however introduce a config in the future
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)