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

Cache timestamps when using DruidBeams.fromConfig. #128

Merged
merged 2 commits into from
Mar 3, 2016

Conversation

gianm
Copy link
Member

@gianm gianm commented Feb 22, 2016

~130% speedup in BenchmarkMain (150k/sec -> 350k/sec on my machine.)

Also add a benchmark class (in a separate commit).

@fjy
Copy link
Member

fjy commented Mar 3, 2016

👍

@@ -39,7 +39,7 @@ import org.joda.time.chrono.ISOChronology
import org.scala_tools.time.Implicits._
import scala.util.Random

class DruidBeamMaker[A: Timestamper](
class DruidBeamMaker[A](
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused import com.metamx.tranquility.typeclass.Timestamper

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed.

~130% speedup in BenchmarkMain (150k/sec -> 350k/sec on my machine.)
@dclim
Copy link
Member

dclim commented Mar 3, 2016

👍

dclim added a commit that referenced this pull request Mar 3, 2016
Cache timestamps when using DruidBeams.fromConfig.
@dclim dclim merged commit e9d50ea into druid-io:master Mar 3, 2016
@gianm gianm deleted the benchmark branch March 3, 2016 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants