[ 
https://issues.apache.org/jira/browse/OWB-1463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18097436#comment-18097436
 ] 

Mark Struberg commented on OWB-1463:
------------------------------------

We can do all the {{BeansDeployer#validate}} in parallel.

I've introduced a new configuration to tweak this via 
{{openwebbeans.properties}} if needed:

{code}
# The maximum number of threads to use for BeansDeployer validation of our 
beans.
# We detect how many CPU cores we do have and then for each 300 or so beans, we 
use a new thread.
# But we will always stay below the max number of CPU cores and configured 
maxThreads.
#
# org.apache.webbeans.deployer.maxThreads =
{code}

> Improve startup Performance
> ---------------------------
>
>                 Key: OWB-1463
>                 URL: https://issues.apache.org/jira/browse/OWB-1463
>             Project: OpenWebBeans
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 4.1.0
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>            Priority: Major
>             Fix For: 4.1.1
>
>
> Right now {{BeansDeployer#validateBeanNames}} is a nested for loop. Which 
> means O(^2) effort, which is bad. Usually we don't have too many {{@Named}} 
> beans, but still. Especially for JSF projects this might be super useful to 
> improve this code part.
> There are likely other loops which can be improved.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to