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

Gilles commented on IMAGING-228:
--------------------------------

Just saw the commit on GitHub: The original code is how I would have done it. ;)
Intuitively, I'd bet that the call to {{Math.pow}} is slower...

> Remove private method PhotometricInterpreterLogLuv#cube by Math.pow
> -------------------------------------------------------------------
>
>                 Key: IMAGING-228
>                 URL: https://issues.apache.org/jira/browse/IMAGING-228
>             Project: Commons Imaging
>          Issue Type: Improvement
>            Reporter: Bruno P. Kinoshita
>            Assignee: Bruno P. Kinoshita
>            Priority: Minor
>             Fix For: 1.0-alpha2
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> We have a private method in PhotometricInterpreterLogLuv, that calculates the 
> cube of a number N doing N * N * N. That can be replaced by Math.pow(N, 3).
> Will add unit tests and some javadocs around photometric interpreters, 
> logluv, cei, lab, color spaces, ceixyz-ceilab, etc, as well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to