t0k4rt / phpqrcode

php QRcode generator library
GNU Lesser General Public License v3.0
875 stars 389 forks source link

why phpqrcode so slow? #33

Open polly3d opened 8 years ago

polly3d commented 8 years ago

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?

stephwestgarth commented 8 years ago

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?

polly3d commented 8 years ago

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

makoru-hikage commented 7 years ago

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