I am running a Spark job and I have an object Constants that contains all constant values I am using in my program.
As an example let us assume that we have the following object:
object Constants{
...
val aSet=Set[String]("foo","bar","etc",...}
...
}
Is it worth broadcasting the aSet
val to the nodes, or is it already available to them since it is part of the code and it it is known in compilation time?