phpqrcode icon indicating copy to clipboard operation
phpqrcode copied to clipboard

why phpqrcode so slow?

Open polly3d opened this issue 9 years ago • 3 comments

It take 4s or more when I created qrcode with this lib. here is my code: include "phpqrcode/qrlib.php"; $text = "http://localhost:8080/Home/Index/index/some_code_value/123456.html"; \QRcode::png($text,false,'H',5,1); Someone can tell me why?

polly3d avatar Mar 16 '16 10:03 polly3d

I read this on the sourceforge site:

To install simply include:

qrlib.php for full version (also you have to provide all library files form package plus cache dir) OR phpqrcode.php for merged version (only one file, but slower and less accurate code because disabled cache and quicker masking configured)

Does this apply to you?

stephwestgarth avatar Mar 18 '16 03:03 stephwestgarth

As the code I give,I used the "qrlib.php". Also I tried to use phpqrcode.php too. But it still slow.It taked half time than "qrlib.php" when use the "phpqrcode.php". eg: qrlib.php 4s phpqrcode.php 2s

polly3d avatar Mar 18 '16 09:03 polly3d

What are the specs of your PC? Why is it slow? Have Xdebug been accounted for?

makoru-hikage avatar Nov 27 '16 02:11 makoru-hikage