Skip to content

Optimizing refactoring: use ArraySegment instead of allocating subarrays#208

Merged
alex-kulakov merged 1 commit intoDataObjects-NET:masterfrom
servicetitan:upstream/Optimize_ArraySegment
Dec 21, 2021
Merged

Optimizing refactoring: use ArraySegment instead of allocating subarrays#208
alex-kulakov merged 1 commit intoDataObjects-NET:masterfrom
servicetitan:upstream/Optimize_ArraySegment

Conversation

@SergeiPavlov
Copy link
Copy Markdown
Contributor

@SergeiPavlov SergeiPavlov commented Dec 14, 2021

The optimization is here:
https://github.com/DataObjects-NET/dataobjects-net/pull/208/files#diff-03168b160ac9646b7cc14af6934909caecdf6213f68d91386277c3ace0a29ab9L94

We avoiding .ToArray() call by using IReadOnlyList in TypeMapping

…ay (#33)

* Optimizing refactoring: use ArraySegment instead of allocating subarray

* Copyright lines
@alex-kulakov alex-kulakov merged commit 74d92fa into DataObjects-NET:master Dec 21, 2021
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