[ 
https://issues.apache.org/jira/browse/SIS-530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Desruisseaux resolved SIS-530.
-------------------------------------
    Resolution: Fixed

> Change Interpolation interface to an abstract class
> ---------------------------------------------------
>
>                 Key: SIS-530
>                 URL: https://issues.apache.org/jira/browse/SIS-530
>             Project: Spatial Information Systems
>          Issue Type: Task
>          Components: Coverage
>    Affects Versions: 1.1
>            Reporter: Martin Desruisseaux
>            Assignee: Martin Desruisseaux
>            Priority: Major
>             Fix For: 1.2
>
>
> {{org.apache.sis.image.Interpolation}} is currently an interface. There is 
> some benefits to make it an abstract class instead. It would allow the 
> addition of a package-private method for handling special cases that we do 
> not want to expose in public API (those special cases are needed for 
> resolving some exceptions observed with {{Visualization}}). Another potential 
> (but not verified) benefit is a potential performance gain. The 
> {{Interpolation.interpolate(…)}} method can be invoked million of times for 
> each image, and benchmarks report [slightly faster method calls on abstract 
> classes compared to 
> interfaces|https://coderedirect.com/questions/200341/performance-difference-between-passing-interface-and-class-reloaded].



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to