Skip to content

Avoid needless memsets by creating a variant of bc_new_num that doesn… #14133

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

Merged
merged 1 commit into from
May 4, 2024

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented May 4, 2024

…'t memset

Also avoid some memsets where we do call bc_new_num.

After:

1.2066178321838
1.5389559268951
1.6050860881805

Before:

1.3858470916748
1.6806011199951
1.9091980457306

Copy link
Member

@SakiTakamachi SakiTakamachi left a comment

Choose a reason for hiding this comment

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

LGTM!

…'t memset

Also avoid some memsets where we do call bc_new_num.

After:
```
1.2066178321838
1.5389559268951
1.6050860881805
```

Before:
```
1.3858470916748
1.6806011199951
1.9091980457306
```
@nielsdos nielsdos merged commit bf3c487 into php:master May 4, 2024
7 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants