Skip to content

Commit 90bc9a7

Browse files
author
os6sense
committed
BigInt to long
1 parent 3331c86 commit 90bc9a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Scala.scala

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
/*
33
Run with -J-Xmx2g option to increase heapsize
44
*/
5-
class ScalaMemTrade(tId: Int, cId: Int, vCode: Int, iCode: Int, iPrice: BigInt, iQuantity: BigInt, sSide: Char) {
5+
class ScalaMemTrade(tId: Int, cId: Int, vCode: Int, iCode: Int, iPrice: Long, iQuantity: Long, sSide: Char) {
66

77
var tradeId: Int =tId
88
var clientId: Int =cId
99
var venueCode: Int =vCode
1010
var instrumentCode: Int =iCode
11-
var price: BigInt =iPrice
12-
var quantity: BigInt =iQuantity
11+
var price: Long =iPrice
12+
var quantity: Long =iQuantity
1313
var side: Char =sSide
1414

1515
def fromI(i: Int) = {
@@ -24,7 +24,7 @@ class ScalaMemTrade(tId: Int, cId: Int, vCode: Int, iCode: Int, iPrice: BigInt,
2424
}
2525

2626
object ScalaTrade {
27-
val NUM_RECORDS: Int = 1 * 1000 * 444;
27+
val NUM_RECORDS: Int = 50 * 1000 * 444;
2828

2929
val trades: Array[ScalaMemTrade] = new Array[ScalaMemTrade](NUM_RECORDS);
3030

0 commit comments

Comments
 (0)