cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between the unserialize lib and the native unserialize in php

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Difference between the unserialize lib and the native unserialize in php

I found out during profiling to speed up things that magento has his own unserialize lib. But i wander why... It is a lot slower (up to 500 times) than the native unserialize function in php. 

 

I am thinking of replacing Mage_Core_Helper_UnserializeArray->unserialize()  with the native one to snoop roughly 150 ms from my request. But it is such a core thing that i'm a bit hesitant about it. What do you guys think about this?