[janino-dev] [jira] Created: (JANINO-121) Janino Compiler Needs Optimizing

View: New views
5 Messages — Rating Filter:   Alert me  

[janino-dev] [jira] Created: (JANINO-121) Janino Compiler Needs Optimizing

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Janino Compiler Needs Optimizing
--------------------------------

                 Key: JANINO-121
                 URL: http://jira.codehaus.org/browse/JANINO-121
             Project: Janino
          Issue Type: Improvement
            Reporter: Matt Fowles
            Assignee: Arno Unkrig
         Attachments: janino-optimize.patch

This includes a bunch of optimzations.  None of these optimizations were made blindly, they were all directly indicated by profiling.


- Descriptor should use a map to cache common conversions
- CodeContext should avoid allocating unneeded objects
- CodeContext should double code size when growing it
- Methods should be cached by name
- switch finding LocalVariables to push the information down the tree eagerly instead of searching up it lazily
- add the ability for SimpleCompiler to cook ASTs directly
- UnitCompiler should push a local variable map through the tree
- add more tests


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[janino-dev] [jira] Commented: (JANINO-121) Janino Compiler Needs Optimizing

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/JANINO-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138966#action_138966 ]

Arno Unkrig commented on JANINO-121:
------------------------------------

    *  Descriptor should use a map to cache common conversions
v. good.

    * CodeContext should avoid allocating unneeded objects
    * CodeContext should double code size when growing it
v. good.

    * Methods should be cached by name
v. good.

    * switch finding LocalVariables to push the information down the tree eagerly instead of searching up it lazily
v. good.

    * add the ability for SimpleCompiler to cook ASTs directly
v. good.

    * UnitCompiler should push a local variable map through the tree
v. good.

    * add more tests
Modified "testByteArrayLiteral()" due to JANINO-117.

Please avoid the declaration of unnecessary exceptions!
Please try to obey the "Java Coding Conventions" regarding spaces before and after operators.

> Janino Compiler Needs Optimizing
> --------------------------------
>
>                 Key: JANINO-121
>                 URL: http://jira.codehaus.org/browse/JANINO-121
>             Project: Janino
>          Issue Type: Improvement
>            Reporter: Matt Fowles
>            Assignee: Arno Unkrig
>         Attachments: janino-optimize.patch
>
>
> This includes a bunch of optimzations.  None of these optimizations were made blindly, they were all directly indicated by profiling.
> - Descriptor should use a map to cache common conversions
> - CodeContext should avoid allocating unneeded objects
> - CodeContext should double code size when growing it
> - Methods should be cached by name
> - switch finding LocalVariables to push the information down the tree eagerly instead of searching up it lazily
> - add the ability for SimpleCompiler to cook ASTs directly
> - UnitCompiler should push a local variable map through the tree
> - add more tests

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[janino-dev] [jira] Updated: (JANINO-121) Some performance optimizations

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/JANINO-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arno Unkrig updated JANINO-121:
-------------------------------

    Fix Version/s: 2.5.15
          Summary: Some performance optimizations  (was: Janino Compiler Needs Optimizing)

> Some performance optimizations
> ------------------------------
>
>                 Key: JANINO-121
>                 URL: http://jira.codehaus.org/browse/JANINO-121
>             Project: Janino
>          Issue Type: Improvement
>            Reporter: Matt Fowles
>            Assignee: Arno Unkrig
>             Fix For: 2.5.15
>
>         Attachments: janino-optimize.patch
>
>
> This includes a bunch of optimzations.  None of these optimizations were made blindly, they were all directly indicated by profiling.
> - Descriptor should use a map to cache common conversions
> - CodeContext should avoid allocating unneeded objects
> - CodeContext should double code size when growing it
> - Methods should be cached by name
> - switch finding LocalVariables to push the information down the tree eagerly instead of searching up it lazily
> - add the ability for SimpleCompiler to cook ASTs directly
> - UnitCompiler should push a local variable map through the tree
> - add more tests

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[janino-dev] [jira] Commented: (JANINO-121) Some performance optimizations

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/JANINO-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138967#action_138967 ]

Matt Fowles commented on JANINO-121:
------------------------------------

sorry about that.  I try to copy the surrounding style whenever I can, but sometime I forget.

> Some performance optimizations
> ------------------------------
>
>                 Key: JANINO-121
>                 URL: http://jira.codehaus.org/browse/JANINO-121
>             Project: Janino
>          Issue Type: Improvement
>            Reporter: Matt Fowles
>            Assignee: Arno Unkrig
>             Fix For: 2.5.15
>
>         Attachments: janino-optimize.patch
>
>
> This includes a bunch of optimzations.  None of these optimizations were made blindly, they were all directly indicated by profiling.
> - Descriptor should use a map to cache common conversions
> - CodeContext should avoid allocating unneeded objects
> - CodeContext should double code size when growing it
> - Methods should be cached by name
> - switch finding LocalVariables to push the information down the tree eagerly instead of searching up it lazily
> - add the ability for SimpleCompiler to cook ASTs directly
> - UnitCompiler should push a local variable map through the tree
> - add more tests

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



[janino-dev] [jira] Closed: (JANINO-121) Some performance optimizations

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/JANINO-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arno Unkrig closed JANINO-121.
------------------------------

    Resolution: Fixed

> Some performance optimizations
> ------------------------------
>
>                 Key: JANINO-121
>                 URL: http://jira.codehaus.org/browse/JANINO-121
>             Project: Janino
>          Issue Type: Improvement
>            Reporter: Matt Fowles
>            Assignee: Arno Unkrig
>             Fix For: 2.5.15
>
>         Attachments: janino-optimize.patch
>
>
> This includes a bunch of optimzations.  None of these optimizations were made blindly, they were all directly indicated by profiling.
> - Descriptor should use a map to cache common conversions
> - CodeContext should avoid allocating unneeded objects
> - CodeContext should double code size when growing it
> - Methods should be cached by name
> - switch finding LocalVariables to push the information down the tree eagerly instead of searching up it lazily
> - add the ability for SimpleCompiler to cook ASTs directly
> - UnitCompiler should push a local variable map through the tree
> - add more tests

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email