GaretJax / phpbrowscap

Standalone replacement for php's native get_browser() function
MIT License
429 stars 69 forks source link

memory improvement #74

Open majick777 opened 9 years ago

majick777 commented 9 years ago

explode line crashed the script on my install, which made me realize it is very memory intensive on a large file like this. instead my alternative is to write the file and use fgets to process it line by line. (hopefully doesn't affect the regex?)

mimmi20 commented 9 years ago

@majick777 Could you check this with the Project browscap/brpwscap-php as well? browscap/browscap-php is the successor of this project and better maintained.

Please also check the following things:

majick777 commented 9 years ago

ah sorry just saw I never got back to this have been too busy to check or log it on the other project... just on those notes you mentioned: