Skip to content

trim workaround (issue #77)#78

Merged
Tarmil merged 3 commits intoTarmil:masterfrom
pchalamet:feature/trim-workaround
Nov 21, 2020
Merged

trim workaround (issue #77)#78
Tarmil merged 3 commits intoTarmil:masterfrom
pchalamet:feature/trim-workaround

Conversation

@pchalamet
Copy link
Copy Markdown
Contributor

This is a workaround for issue #77 as describe in dotnet/runtime#43222 (comment)
Publish with trimming now works as expected.

This PR convert Serializer.Serialize<> and Serializer.Deserialize<> to non-generic counterparts.

NOTE: no performance impact has been done. This probably ought be checked (downcast :?> used).

@pchalamet
Copy link
Copy Markdown
Contributor Author

Merged main.
Looks good with your changes on master.
Thanks.

@Tarmil
Copy link
Copy Markdown
Owner

Tarmil commented Nov 21, 2020

After testing some more, it seems that only the calls parameterized by 'T[] are problematic; the ones parameterized by 'T or even seq<'T> can remain generic. And looking at this, there is definitely a performance impact for using the non-generic version at least for structs. So I'll merge the change only for 'T[].

@Tarmil Tarmil merged commit e00474a into Tarmil:master Nov 21, 2020
@pchalamet pchalamet deleted the feature/trim-workaround branch November 21, 2020 14:51
@pchalamet
Copy link
Copy Markdown
Contributor Author

Thanks for the feedback. Good to know!

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.

2 participants