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

Improve perf of Graph.Scope.scopeFor hotspot #9620

Merged
merged 5 commits into from
Apr 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,24 @@ protected Double readObject(Input in) throws IOException, ClassNotFoundException
}
}

@ServiceProvider(service = Persistance.class)
public static final class PersistInteger extends Persistance<Integer> {
hubertp marked this conversation as resolved.
Show resolved Hide resolved
public PersistInteger() {
super(Integer.class, true, 4441);
}

@Override
protected void writeObject(Integer obj, Output out) throws IOException {
out.writeDouble(obj);
hubertp marked this conversation as resolved.
Show resolved Hide resolved
}

@Override
protected Integer readObject(Input in) throws IOException, ClassNotFoundException {
var obj = in.readInt();
return obj;
}
}

@ServiceProvider(service = Persistance.class)
public static final class PersistScalaList extends Persistance<List> {
public PersistScalaList() {
Expand Down
Loading