php-src/ext/bcmath
Niels Dossche a66439adbb
Avoid unnecessary number initializations in BCMath (#14104)
Since freeing can deal with NULL, we can avoid calling bc_init_num and
avoid resetting the number during parsing.

Using benchmark from #14076.

Before:
```
1.544440984726
2.0288550853729
2.092139005661
```

After:
```
1.5324399471283
1.9081380367279
2.065819978714
```
2024-05-01 17:52:06 +02:00
..
libbcmath Avoid unnecessary number initializations in BCMath (#14104) 2024-05-01 17:52:06 +02:00
tests [RFC] Add bcfloor, bcceil and bcround to BCMath (#13096) 2024-04-30 18:32:33 +01:00
bcmath_arginfo.h [RFC] Add bcfloor, bcceil and bcround to BCMath (#13096) 2024-04-30 18:32:33 +01:00
bcmath.c Avoid unnecessary number initializations in BCMath (#14104) 2024-05-01 17:52:06 +02:00
bcmath.stub.php [RFC] Add bcfloor, bcceil and bcround to BCMath (#13096) 2024-04-30 18:32:33 +01:00
config.m4 Use bulk conversion in BCMath of BCD/CHAR where possible (#14103) 2024-05-01 16:48:42 +02:00
config.w32 Use bulk conversion in BCMath of BCD/CHAR where possible (#14103) 2024-05-01 16:48:42 +02:00
CREDITS
php_bcmath.h [RFC] Add bcfloor, bcceil and bcround to BCMath (#13096) 2024-04-30 18:32:33 +01:00