Skip to content

Commit b85e59f

Browse files
committed
Changes for the 0.7.0 release of chill
1 parent e13fbd8 commit b85e59f

5 files changed

Lines changed: 23 additions & 16 deletions

File tree

CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# chill #
22

3+
### 0.7.0 ###
4+
* Adds Scrooge 2.11 support now that the artifact is out, sets up for c…: https://github.com/twitter/chill/pull/236
5+
* make chill 1.6 compatible: https://github.com/twitter/chill/pull/231
6+
* Update README.md: https://github.com/twitter/chill/pull/232
7+
* Alter scala collection default serializer registration order: https://github.com/twitter/chill/pull/229
8+
* Build chill-scrooge for scala 2.11, too: https://github.com/twitter/chill/pull/219
9+
310
### 0.6.0 ###
411
* Add build instructions to readme and make InjectiveSerializer serializable #216
512
* Build chill-scrooge for scala 2.11, too #219

chill-java/src/test/scala/com/twitter/chill/java/BitSetTest.scala

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package com.twitter.chill.java
33
import java.util
44

55
import com.esotericsoftware.kryo.Kryo
6-
import com.esotericsoftware.kryo.io.{Input, Output}
6+
import com.esotericsoftware.kryo.io.{ Input, Output }
77
import org.objenesis.strategy.StdInstantiatorStrategy
88
import org.scalatest._
99

@@ -63,19 +63,19 @@ class BitSetSpec extends WordSpec with MustMatchers {
6363
}
6464

6565
// warmup In case anybody wants to see hotspot
66-
var lastBitSetFromOld : util.BitSet = null
67-
for(i <- 0 to 50000) {
66+
var lastBitSetFromOld: util.BitSet = null
67+
for (i <- 0 to 50000) {
6868
lastBitSetFromOld = rt(element)(oldKryo)
6969
}
7070
var start = System.currentTimeMillis()
71-
for(i <- 0 to 100000) {
71+
for (i <- 0 to 100000) {
7272
rt(element)(oldKryo)
7373
}
74-
println("The old serializer took "+(System.currentTimeMillis() - start)+"ms")
74+
println("The old serializer took " + (System.currentTimeMillis() - start) + "ms")
7575

76-
var lastBitSetFromNew : util.BitSet = null
76+
var lastBitSetFromNew: util.BitSet = null
7777
// warmup for the new kryo
78-
for(i <- 0 to 50000) {
78+
for (i <- 0 to 50000) {
7979
lastBitSetFromNew = rt(element)(newKryo)
8080
}
8181
// check for the three bitsets to be equal
@@ -87,23 +87,22 @@ class BitSetSpec extends WordSpec with MustMatchers {
8787
element.get(i) must be(lastBitSetFromNew.get(i))
8888
}
8989

90-
9190
start = System.currentTimeMillis()
92-
for(i <- 0 to 100000) {
91+
for (i <- 0 to 100000) {
9392
rt(element)(newKryo)
9493
}
95-
println("The new serializer took "+(System.currentTimeMillis() - start)+"ms")
94+
println("The new serializer took " + (System.currentTimeMillis() - start) + "ms")
9695

9796
var out = new Output(1, -1)
9897
oldKryo.writeObject(out, element)
9998
out.flush()
10099
var oldBytes = out.total()
101-
println("The old serializer needs "+oldBytes+" bytes")
100+
println("The old serializer needs " + oldBytes + " bytes")
102101
out = new Output(1, -1)
103102
newKryo.writeObject(out, element)
104103
out.flush()
105104
var newBytes = out.total()
106-
println("The new serializer needs "+newBytes+" bytes")
105+
println("The new serializer needs " + newBytes + " bytes")
107106

108107
oldBytes >= newBytes must be(true)
109108
}

project/Build.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ import scala.collection.JavaConverters._
1212
object ChillBuild extends Build {
1313
val kryoVersion = "2.21"
1414

15+
val bijectionVersion = "0.8.1"
16+
val algebirdVersion = "0.11.0"
1517

1618
def isScala210x(scalaVersion: String) = scalaVersion match {
1719
case version if version startsWith "2.10" => true
1820
case _ => false
1921
}
2022

2123
val sharedSettings = Project.defaultSettings ++ mimaDefaultSettings ++ scalariformSettings ++ Seq(
22-
23-
version := "0.6.0",
2424
organization := "com.twitter",
2525
scalaVersion := "2.10.5",
2626
crossScalaVersions := Seq("2.10.5", "2.11.7"),
@@ -150,7 +150,7 @@ object ChillBuild extends Build {
150150
settings = sharedSettings
151151
).settings(
152152
name := "chill",
153-
previousArtifact := Some("com.twitter" % "chill_2.10" % "0.5.0")
153+
previousArtifact := Some("com.twitter" % "chill_2.10" % "0.7.0")
154154
).dependsOn(chillJava)
155155

156156
lazy val chillAkka = module("akka").settings(

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=0.13.5
1+
sbt.version=0.13.8

version.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version in ThisBuild := "0.7.0"

0 commit comments

Comments
 (0)