You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2015/08/18 14:57:45 UTC

[jira] [Updated] (SPARK-10074) Include Float in @specialized annotation

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

Sean Owen updated SPARK-10074:
------------------------------
    Component/s: Spark Core

Where would this get used though? I didn't see any usages of floats in these maps. It's not worth it unless the code would take advantage of them.

> Include Float in @specialized annotation
> ----------------------------------------
>
>                 Key: SPARK-10074
>                 URL: https://issues.apache.org/jira/browse/SPARK-10074
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>            Reporter: Ted Yu
>            Priority: Minor
>
> There're several places in Spark codebase where we use @specialized annotation covering Long and Double.
> e.g. in OpenHashMap.scala :
> {code}
> class OpenHashMap[K : ClassTag, @specialized(Long, Int, Double) V: ClassTag](
>     initialCapacity: Int)
> {code}
> Float should be added to @specialized annotation as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org