Skip to content

Commit

Permalink
removed unnecessary deepcopy (oscar-system#3094)
Browse files Browse the repository at this point in the history
Co-authored-by: Antony Della Vecchia <[email protected]>
  • Loading branch information
antonydellavecchia and antonydellavecchia authored Dec 11, 2023
1 parent 3176827 commit 1c415f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Serialization/serializers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function load_node(f::Function, s::DeserializerState,
end

!isnothing(key) && set_key(s, key)
obj = deepcopy(s.obj)
obj = s.obj
s.obj = isnothing(s.key) ? s.obj : s.obj[s.key]
s.key = nothing
result = f(s.obj)
Expand Down

0 comments on commit 1c415f5

Please sign in to comment.