Skip to content

Commit 3273897

Browse files
feat: performance improvements (#55)
BREAKING-CHANGE: Removed Castor\Bytes as a dependency and replace it by Castor\Uuid\ByteArray BREAKING-CHANGE: Removed Brick\Math\BigNumber from Time classes
1 parent 4769564 commit 3273897

37 files changed

+818
-557
lines changed

.dev/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
debug
2-
coverage
2+
coverage
3+
bench.html

.dev/docker/php/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN install-php-extensions bcmath
2222

2323
FROM base AS dev
2424

25-
RUN install-php-extensions xdebug pcntl posix
25+
RUN install-php-extensions xdebug pcntl posix opcache
2626

2727
# Install and Configure XDebug
2828
COPY ./xdebug.ini /usr/local/etc/php/conf.d/60_xdebug.ini

composer.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,8 @@
4141
"require": {
4242
"php": ">=8.3",
4343
"ext-bcmath": "*",
44-
"castor/io": "^0.3.0",
45-
"castor/bytes": "^0.2.0",
46-
"castor/functions": "^0.2.0",
47-
"brick/date-time": "^0.6",
48-
"brick/math": "^0.10"
44+
"castor/functions": "^1.0",
45+
"brick/date-time": "^0.7"
4946
},
5047
"require-dev": {
5148
"phpunit/phpunit": "^10.5",
@@ -74,9 +71,11 @@
7471
"test:unit": "phpunit --colors --exclude-group=integration --exclude-group=e2e",
7572
"test:e2e": "phpunit --colors --group=e2e",
7673
"test:integration": "phpunit --colors --group=integration",
77-
"bench": "phpbench run tests/Benchmark --report=default",
74+
"bench": "phpbench run --report=default --output=html tests/Benchmark",
7875
"profile": "phpbench xdebug:profile tests/Benchmark --progress=none",
7976
"psalm": "psalm --no-cache --threads=5",
80-
"psalm:gh": "psalm --no-cache --threads=5 --long-progress --output-format=github"
77+
"psalm:gh": "psalm --no-cache --threads=5 --long-progress --output-format=github",
78+
"psalm:fix": "psalm --update-baseline",
79+
"psalm:allow": "psalm --set-baseline=psalm-baseline.xml"
8180
}
8281
}

0 commit comments

Comments
 (0)