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

Drop dependency on reflect #31

Merged
merged 3 commits into from
Dec 16, 2023
Merged

Drop dependency on reflect #31

merged 3 commits into from
Dec 16, 2023

Conversation

hsfzxjy
Copy link
Contributor

@hsfzxjy hsfzxjy commented Dec 15, 2023

Previously the code used reflect package to access a variable with bound ~string. This can be improved by using unsafe.Pointer trick so that synchro can have no dependency on reflect.

Copy link

codecov bot commented Dec 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3d65abc) 100.00% compared to head (47ae8f1) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #31   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        15           
  Lines         2637      2635    -2     
=========================================
- Hits          2637      2635    -2     

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

period.go Outdated
case []byte:
return ParseISO[T](string(v))
return ParseISO[T](string(*(*[]byte)(argPtr)))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certainly it can. I've updated the code.

Copy link
Owner

@Code-Hex Code-Hex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Code-Hex Code-Hex merged commit 2206fae into Code-Hex:main Dec 16, 2023
4 checks passed
@hsfzxjy hsfzxjy deleted the drop-reflect branch December 16, 2023 13:26
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.

None yet

2 participants