Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use new atomic types from Go 1.19#444

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nhooyr merged 2 commits intocoder:devfromJacalz:atomic-cleanup
Apr 12, 2024
Merged

Use new atomic types from Go 1.19#444

nhooyr merged 2 commits intocoder:devfromJacalz:atomic-cleanup
Apr 12, 2024

Conversation

Jacalz
Copy link
Contributor

This is a cleaner solution for the fix in#438 thanks to the fact that Go 1.19 now is the default and the atomic.Int64 types are automatically aligned correctly on 32 bit systems.

Using this also means that xsync.Int64 can be removed. The new atomic.Int64 type solves the issue and should be quite a lot faster as it avoids the interface conversion.

This is a cleaner solution for the fix in#438 thanks to the fact that Go 1.19 now is the default and the atomic.Int64 types are automatically aligned correctly on 32 bit systems.Using this also means that xsync.Int64 can be removed. The new atomic.Int64 type solves the issue and should be quite a lot faster as it avoids the interface conversion.
Copy link
Contributor

@nhooyrnhooyr left a comment

Choose a reason for hiding this comment

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

Awesome thanks@Jacalz

@JacalzJacalz requested a review fromnhooyrApril 12, 2024 12:58
Copy link
Contributor

@nhooyrnhooyr left a comment

Choose a reason for hiding this comment

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

Nice thank you@Jacalz

@nhooyrnhooyr merged commit35fb753 intocoder:devApr 12, 2024
@JacalzJacalz deleted the atomic-cleanup branchApril 12, 2024 18:59
@Jacalz
Copy link
ContributorAuthor

No problem. Happy to help :)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
1 more reviewer

@nhooyrnhooyrnhooyr approved these changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Jacalz@nhooyr

[8]ページ先頭

©2009-2025 Movatter.jp