plznty Posted February 2, 2010 Share Posted February 2, 2010 Im trying to get a value between a html code, preg_match is doing the job but it takes a while to appear, and thats just me using it. Is there something more robust so that alot of people can seeĀ the value without so much loading time. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/190640-is-there-something-faster-than-preg_match/ Share on other sites More sharing options...
PFMaBiSmAd Posted February 2, 2010 Share Posted February 2, 2010 How have you determined that the delay is due to the preg_match instead of it being due to fetching the source that you are using preg_match on? Quote Link to comment https://forums.phpfreaks.com/topic/190640-is-there-something-faster-than-preg_match/#findComment-1005417 Share on other sites More sharing options...
plznty Posted February 2, 2010 Author Share Posted February 2, 2010 How have you determined that the delay is due to the preg_match instead of it being due to fetching the source that you are using preg_match on? Yeah the page in which is has to grab the information is big, however there still must be a better way, is it possible to make it go to line then preg_match on that line, rather than using the whole page? Quote Link to comment https://forums.phpfreaks.com/topic/190640-is-there-something-faster-than-preg_match/#findComment-1005418 Share on other sites More sharing options...
JonnoTheDev Posted February 2, 2010 Share Posted February 2, 2010 It's unlikely that the preg_match function is causing your app to run slow. I would suggest you post your entire script. Poor code, or attempting to load a massive amount of data into a script, or heavy database queries are usually the cause of a script to perform poorly. Quote Link to comment https://forums.phpfreaks.com/topic/190640-is-there-something-faster-than-preg_match/#findComment-1005420 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.