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

refactor: 0 pair 0 meld's replacement number and necessary tiles fixed to 0 #31

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

Apricot-S
Copy link
Owner

0 雀頭 0 面子の部分置換数は常に 0、有効牌はなしとなる。
そのため、pack した置換数と有効牌を unpack する際 pack[0] を参照する必要はなく、常に 0 としてよい。
これにより実行時の計算時間がわずかに減少する。
Criterion.rs のベンチマークでは変更前と比べて 0.6 % ~ 6.3 % 減少している。

@Apricot-S Apricot-S merged commit 48e461e into develop Dec 24, 2024
@Apricot-S Apricot-S deleted the refactor/0-0 branch December 24, 2024 12:59
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