-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement optional parallel log bootstrap for segmented logs (#158)
* Explore parallelization * Change package * Refactor and add configuration options * Fix Scala 2.11/2.12 parallel helpers * Remove hopefully unnecessary dependency and reset Scala version to 2.13 * Quick sanity check unit test * Fix parallelization
- Loading branch information
Showing
9 changed files
with
83 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/scala-2.11/com/comcast/xfinity/sirius/uberstore/segmented/ParallelHelpers.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.comcast.xfinity.sirius.uberstore.segmented | ||
|
||
import scala.collection.parallel.ParSeq | ||
|
||
object ParallelHelpers { | ||
def parallelize[T](seq: Seq[T]): ParSeq[T] = seq.par | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/scala-2.12/com/comcast/xfinity/sirius/uberstore/segmented/ParallelHelpers.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.comcast.xfinity.sirius.uberstore.segmented | ||
|
||
import scala.collection.parallel.ParSeq | ||
|
||
object ParallelHelpers { | ||
def parallelize[T](seq: Seq[T]): ParSeq[T] = seq.par | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/scala-2.13/com/comcast/xfinity/sirius/uberstore/segmented/ParallelHelpers.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.comcast.xfinity.sirius.uberstore.segmented | ||
|
||
import scala.collection.parallel.CollectionConverters._ | ||
import scala.collection.parallel.ParSeq | ||
|
||
object ParallelHelpers { | ||
def parallelize[T](seq: Seq[T]): ParSeq[T] = seq.par | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters