Update: Terry Chay has answered my question about why this is happening. In a nutshell, PHP is using 33,160 opcodes and 33,157 regsters for the verbose code. In comparison, the serialized array only uses 5 opcodes and 2 registers. He used something called VLD, which I had not heard of, to figure all this out.
So, at dealnews, we have a category tree. To make life easy, we dump it to an array in a file that we can include on any page. It has 420 entries. Expanded, one entry may look like:
$CATEGORIES[202]['id'] = "202"; $CATEGORIES[202]['name'] = "clothing & accessories"; $CATEGORIES[202]['parent'] = "0"; $CATEGORIES[202]['standalone'] = ""; $CATEGORIES[202]['description'] = "clothing"; $CATEGORIES[202]['precedence'] = "0"; $CATEGORIES[202]['preferred'] = "0"; …[Read more]