Skip to content

Commit

Permalink
Change default format used kyro functions to ubj.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jan 19, 2022
1 parent 183e7de commit fa680b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ private static long[] dmatrixsToHandles(DMatrix[] dmatrixs) {
private void writeObject(java.io.ObjectOutputStream out) throws IOException {
try {
out.writeInt(version);
out.writeObject(this.toByteArray());
out.writeObject(this.toByteArray("ubj"));
} catch (XGBoostError ex) {
ex.printStackTrace();
logger.error(ex.getMessage());
Expand Down Expand Up @@ -764,7 +764,7 @@ public synchronized void dispose() {
@Override
public void write(Kryo kryo, Output output) {
try {
byte[] serObj = this.toByteArray();
byte[] serObj = this.toByteArray("ubj");
int serObjSize = serObj.length;
output.writeInt(serObjSize);
output.writeInt(version);
Expand Down

0 comments on commit fa680b8

Please sign in to comment.