You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2016/06/02 19:45:59 UTC

[jira] [Commented] (DELTASPIKE-1161) [perf] avoid Instance#Select

    [ 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)