Skip to content

Commit d613e34

Browse files
committed
Added a note about the speed
1 parent c284450 commit d613e34

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ composer require lupecode/php-trader-native
2626
~~~
2727

2828
## Usage
29+
2930
### Drop-In Replacement
3031

3132
This library is intended to be a drop-in replacement for the Trader extension, with a minimum of code changed.
@@ -53,7 +54,16 @@ while the PECL Trader source can be seen [here](https://svn.php.net/viewvc/pecl/
5354

5455
**This package uses the C/Java defaults and not the PECL defaults.**
5556

57+
## Speed
58+
59+
Given that this library is written in pure PHP, is does run slower than the PECL extension which is written in C.
60+
My benchmarks give 5x to 30x slower depending on the function.
61+
62+
**I welcome any help with optimizations!**
63+
I have not worked to optimize this library; it's a simple conversion from C to PHP.
64+
5665
## Contributing/Development
66+
5767
### Requirements
5868

5969
* PHP >= 7.0.0

0 commit comments

Comments
 (0)