Skip to content
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

Fix: Improve object cloning performance #14

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

bpolaszek
Copy link
Owner

Cloning readonly objects is a tedious task since it requires instantiating a new one with different constructor params.

The rewrite of this function offers a 150% performance improvement over previous implementation.

Copy link

codecov bot commented Nov 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4ccf009) 100.00% compared to head (eed64b4) 100.00%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##              master       #14   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity       192       193    +1     
===========================================
  Files             40        40           
  Lines            486       487    +1     
===========================================
+ Hits             486       487    +1     

see 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bpolaszek bpolaszek merged commit 6b79bf3 into master Nov 6, 2023
4 checks passed
@bpolaszek bpolaszek deleted the fix/clone-readonly-objects branch November 6, 2023 10:02
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