You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Sauthier (JIRA)" <ji...@apache.org> on 2009/08/21 16:48:14 UTC

[jira] Created: (FELIX-1518) iPOJO manipulator is really slow even when annotation are ignored

iPOJO manipulator is really slow even when annotation are ignored
-----------------------------------------------------------------

                 Key: FELIX-1518
                 URL: https://issues.apache.org/jira/browse/FELIX-1518
             Project: Felix
          Issue Type: Improvement
          Components: iPOJO
    Affects Versions: iPOJO-1.2.0
            Reporter: Guillaume Sauthier


In JOnAS, we don't use the annotation feature of iPOJO, so we configured the maven-ipojo-plugin to ignore annotations.

Nevertheless, the ipojo manipulation process is terribly slow !
We have a tomcat bundle (containing all Tomcat's classes) that takes up to 1mn30sec to be completed. That time includes class compilation, tests, bundle creation (with maven-bundle-plugin) and iPOJO manipulation. This is definitely the iPOJO manipulation that takes the larger part of this duration !

Looking at the Pojoization class, it seems that we get the bytecode of all the classes in the processed bundle even with annotations ignored!

I think this is quite easy to optimize a lot the manipulation (in the ignored annotation case).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-1518) iPOJO manipulator is really slow even when annotation are ignored

Posted by "Clement Escoffier (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clement Escoffier updated FELIX-1518:
-------------------------------------


Fixed at revision 806821.
Avoid reading jar entries when not used. This improve the manipulator efficiency when annotations are ignored.

> iPOJO manipulator is really slow even when annotation are ignored
> -----------------------------------------------------------------
>
>                 Key: FELIX-1518
>                 URL: https://issues.apache.org/jira/browse/FELIX-1518
>             Project: Felix
>          Issue Type: Improvement
>          Components: iPOJO
>    Affects Versions: iPOJO-1.4.0
>            Reporter: Guillaume Sauthier
>            Assignee: Clement Escoffier
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> In JOnAS, we don't use the annotation feature of iPOJO, so we configured the maven-ipojo-plugin to ignore annotations.
> Nevertheless, the ipojo manipulation process is terribly slow !
> We have a tomcat bundle (containing all Tomcat's classes) that takes up to 1mn30sec to be completed. That time includes class compilation, tests, bundle creation (with maven-bundle-plugin) and iPOJO manipulation. This is definitely the iPOJO manipulation that takes the larger part of this duration !
> Looking at the Pojoization class, it seems that we get the bytecode of all the classes in the processed bundle even with annotations ignored!
> I think this is quite easy to optimize a lot the manipulation (in the ignored annotation case).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Work started: (FELIX-1518) iPOJO manipulator is really slow even when annotation are ignored

Posted by "Clement Escoffier (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on FELIX-1518 started by Clement Escoffier.

> iPOJO manipulator is really slow even when annotation are ignored
> -----------------------------------------------------------------
>
>                 Key: FELIX-1518
>                 URL: https://issues.apache.org/jira/browse/FELIX-1518
>             Project: Felix
>          Issue Type: Improvement
>          Components: iPOJO
>    Affects Versions: iPOJO-1.4.0
>            Reporter: Guillaume Sauthier
>            Assignee: Clement Escoffier
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> In JOnAS, we don't use the annotation feature of iPOJO, so we configured the maven-ipojo-plugin to ignore annotations.
> Nevertheless, the ipojo manipulation process is terribly slow !
> We have a tomcat bundle (containing all Tomcat's classes) that takes up to 1mn30sec to be completed. That time includes class compilation, tests, bundle creation (with maven-bundle-plugin) and iPOJO manipulation. This is definitely the iPOJO manipulation that takes the larger part of this duration !
> Looking at the Pojoization class, it seems that we get the bytecode of all the classes in the processed bundle even with annotations ignored!
> I think this is quite easy to optimize a lot the manipulation (in the ignored annotation case).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-1518) iPOJO manipulator is really slow even when annotation are ignored

Posted by "Clement Escoffier (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clement Escoffier updated FELIX-1518:
-------------------------------------

     Affects Version/s:     (was: iPOJO-1.2.0)
                        iPOJO-1.4.0
              Assignee: Clement Escoffier
    Remaining Estimate: 0h
     Original Estimate: 0h

This manipulator open and read twice each classes of the jar for no reason (when annotations are ignored). This is definitely expensive.

> iPOJO manipulator is really slow even when annotation are ignored
> -----------------------------------------------------------------
>
>                 Key: FELIX-1518
>                 URL: https://issues.apache.org/jira/browse/FELIX-1518
>             Project: Felix
>          Issue Type: Improvement
>          Components: iPOJO
>    Affects Versions: iPOJO-1.4.0
>            Reporter: Guillaume Sauthier
>            Assignee: Clement Escoffier
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> In JOnAS, we don't use the annotation feature of iPOJO, so we configured the maven-ipojo-plugin to ignore annotations.
> Nevertheless, the ipojo manipulation process is terribly slow !
> We have a tomcat bundle (containing all Tomcat's classes) that takes up to 1mn30sec to be completed. That time includes class compilation, tests, bundle creation (with maven-bundle-plugin) and iPOJO manipulation. This is definitely the iPOJO manipulation that takes the larger part of this duration !
> Looking at the Pojoization class, it seems that we get the bytecode of all the classes in the processed bundle even with annotations ignored!
> I think this is quite easy to optimize a lot the manipulation (in the ignored annotation case).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (FELIX-1518) iPOJO manipulator is really slow even when annotation are ignored

Posted by "Clement Escoffier (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clement Escoffier resolved FELIX-1518.
--------------------------------------

    Resolution: Fixed

> iPOJO manipulator is really slow even when annotation are ignored
> -----------------------------------------------------------------
>
>                 Key: FELIX-1518
>                 URL: https://issues.apache.org/jira/browse/FELIX-1518
>             Project: Felix
>          Issue Type: Improvement
>          Components: iPOJO
>    Affects Versions: iPOJO-1.4.0
>            Reporter: Guillaume Sauthier
>            Assignee: Clement Escoffier
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> In JOnAS, we don't use the annotation feature of iPOJO, so we configured the maven-ipojo-plugin to ignore annotations.
> Nevertheless, the ipojo manipulation process is terribly slow !
> We have a tomcat bundle (containing all Tomcat's classes) that takes up to 1mn30sec to be completed. That time includes class compilation, tests, bundle creation (with maven-bundle-plugin) and iPOJO manipulation. This is definitely the iPOJO manipulation that takes the larger part of this duration !
> Looking at the Pojoization class, it seems that we get the bytecode of all the classes in the processed bundle even with annotations ignored!
> I think this is quite easy to optimize a lot the manipulation (in the ignored annotation case).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-1518) iPOJO manipulator is really slow even when annotation are ignored

Posted by "Guillaume Sauthier (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Sauthier updated FELIX-1518:
--------------------------------------

    Attachment: FELIX-1518.patch

To be applied against revision 803035
Compared to what has already been committed this patch brings:
* Use finally to force stream's close
* more factorized (bytecode read)
* More comments at some place

BTW, there is a point where I think a NPE can occur (search the TODO) ...

> iPOJO manipulator is really slow even when annotation are ignored
> -----------------------------------------------------------------
>
>                 Key: FELIX-1518
>                 URL: https://issues.apache.org/jira/browse/FELIX-1518
>             Project: Felix
>          Issue Type: Improvement
>          Components: iPOJO
>    Affects Versions: iPOJO-1.4.0
>            Reporter: Guillaume Sauthier
>            Assignee: Clement Escoffier
>         Attachments: FELIX-1518.patch
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> In JOnAS, we don't use the annotation feature of iPOJO, so we configured the maven-ipojo-plugin to ignore annotations.
> Nevertheless, the ipojo manipulation process is terribly slow !
> We have a tomcat bundle (containing all Tomcat's classes) that takes up to 1mn30sec to be completed. That time includes class compilation, tests, bundle creation (with maven-bundle-plugin) and iPOJO manipulation. This is definitely the iPOJO manipulation that takes the larger part of this duration !
> Looking at the Pojoization class, it seems that we get the bytecode of all the classes in the processed bundle even with annotations ignored!
> I think this is quite easy to optimize a lot the manipulation (in the ignored annotation case).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (FELIX-1518) iPOJO manipulator is really slow even when annotation are ignored

Posted by "Guillaume Sauthier (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Sauthier closed FELIX-1518.
-------------------------------------


Thanks for applying the patch Clement.

Now, our Tomcat bundle takes "only" 30 seconds to be generated!

> iPOJO manipulator is really slow even when annotation are ignored
> -----------------------------------------------------------------
>
>                 Key: FELIX-1518
>                 URL: https://issues.apache.org/jira/browse/FELIX-1518
>             Project: Felix
>          Issue Type: Improvement
>          Components: iPOJO
>    Affects Versions: iPOJO-1.4.0
>            Reporter: Guillaume Sauthier
>            Assignee: Clement Escoffier
>         Attachments: FELIX-1518.patch
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> In JOnAS, we don't use the annotation feature of iPOJO, so we configured the maven-ipojo-plugin to ignore annotations.
> Nevertheless, the ipojo manipulation process is terribly slow !
> We have a tomcat bundle (containing all Tomcat's classes) that takes up to 1mn30sec to be completed. That time includes class compilation, tests, bundle creation (with maven-bundle-plugin) and iPOJO manipulation. This is definitely the iPOJO manipulation that takes the larger part of this duration !
> Looking at the Pojoization class, it seems that we get the bytecode of all the classes in the processed bundle even with annotations ignored!
> I think this is quite easy to optimize a lot the manipulation (in the ignored annotation case).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.