Skip to content

Conversation

@tujun233
Copy link

@tujun233 tujun233 commented Nov 4, 2025

Hi !

when using copier, I found a problem that when dst and src are different type slice, existing code will perform two deep-copy for one element in a slice (from -> dest and dest -> to).

image image

when I perform a deepcopy from []*model.XXX to []*business.XXX, the second picture shows that the fromValue of next stack becomes a business.XXX. It will affect the speed of copying. dest is already deepcopy of from, so I think directly using .set is ok.

@tujun233
Copy link
Author

tujun233 commented Nov 4, 2025

Status: Open.
#237
@jinzhu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant