l0ve2hat3 Posted March 22, 2010 Share Posted March 22, 2010 i have a HUGE array that i need to store in a mysql database. unserialize is EXTREMELY slow... json_decode is faster but is there a way i can unserialize an array faster? would increasing memory make this faster? Link to comment https://forums.phpfreaks.com/topic/196128-fasted-array-encoding/ Share on other sites More sharing options...
Psycho Posted March 22, 2010 Share Posted March 22, 2010 Is there some reason you can't store the data in an associated table insted of serializing it? Link to comment https://forums.phpfreaks.com/topic/196128-fasted-array-encoding/#findComment-1030005 Share on other sites More sharing options...
l0ve2hat3 Posted March 22, 2010 Author Share Posted March 22, 2010 @mjdamato I could do that and of course that would be better, but i want to know about making unserializing the array. Link to comment https://forums.phpfreaks.com/topic/196128-fasted-array-encoding/#findComment-1030022 Share on other sites More sharing options...
Psycho Posted March 22, 2010 Share Posted March 22, 2010 Well, I doubt you are going to find a more efficinet method than the functions that already exist - which you have already used. There may be shortcuts you could implement if you are only using some of the data from the arrays, but it would be specific to your needs. Link to comment https://forums.phpfreaks.com/topic/196128-fasted-array-encoding/#findComment-1030035 Share on other sites More sharing options...
l0ve2hat3 Posted March 23, 2010 Author Share Posted March 23, 2010 ah good idea... i guess i can store different parts of the array in different fields thanks for the help Link to comment https://forums.phpfreaks.com/topic/196128-fasted-array-encoding/#findComment-1030296 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.