Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Full Outer Join From S3 Backend #2370

Closed

Conversation

jamesmcclain
Copy link
Member

@jamesmcclain jamesmcclain commented Sep 13, 2017

Connects #2327

Benchmark

Code

import geotrellis.spark._
import geotrellis.spark.io._
import geotrellis.spark.io.s3._
import geotrellis.raster._

implicit val _sc = sc

val as = S3AttributeStore("geotrellis-test", "jmcclain/ned")
val id = LayerId("landsat", 13)
val reader = S3LayerReader(as)
val layer = reader.read[SpatialKey, Tile, TileLayerMetadata[SpatialKey]](id)
val strip = ContextRDD(layer.repartition(256).filter({ case (SpatialKey(x, y), _) => 2*x == y }), layer.metadata)
val updater = new S3LayerUpdater(as, reader)

println(System.currentTimeMillis) ; updater.update(id, strip, {(v1: Tile, v2:Tile) => v1 }) ; println(System.currentTimeMillis)

Results

mean first run (millis) mean subsequent runs (millis)
current 83214 34538.5
PR 42050.5 3606.75

@jamesmcclain jamesmcclain changed the title Remove Full Outer Join From S3 Remove Full Outer Join From S3 Backend Sep 13, 2017
@jamesmcclain jamesmcclain deleted the feature/LayerUpdater.s3 branch October 3, 2017 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant