-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
move Serializer
to stdlib
#25628
move Serializer
to stdlib
#25628
Conversation
base/loading.jl
Outdated
@@ -582,16 +583,17 @@ function create_expr_cache(input::String, output::String, concrete_deps::typeof( | |||
empty!(Base._concrete_dependencies) | |||
append!(Base._concrete_dependencies, $concrete_deps) | |||
Base._track_dependencies[] = true | |||
end) | |||
end\0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While effectively the same, might be clearer to splice in repr(...)
explicitly?
pkg = deserialize(f) | ||
err = deserialize(f) | ||
pkg = chop(readuntil(f, '\0')) | ||
err = chop(readuntil(f, '\0')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why chop
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The result of readuntil
includes the delimiter. I guess we could change that, since we already made that change to readline
.
493c3a3
to
6c85618
Compare
6c85618
to
2f1bdee
Compare
Base only uses this in two places: precompile and pkg/entry. I changed them to use Good Ol' Strings.
Did some renaming as well. The package is now called
Serialization
, andSerializationState
is renamedSerializer
to go withAbstractSerializer
and its other subtypeClusterSerializer
.