PApp
view release on metacpan or search on metacpan
Storable/Storable.xs view on Meta::CPAN
char mtype = 'P';
TRACEME(("store_tied (0x%"UVxf")", PTR2UV(sv)));
/*
* We have a small run-time penalty here because we chose to factorise
* all tieds objects into the same routine, and not have a store_tied_hash,
* a store_tied_array, etc...
*
* Don't use a switch() statement, as most compilers don't optimize that
* well for 2/3 values. An if() else if() cascade is just fine. We put
* tied hashes first, as they are the most likely beasts.
*/
if (svt == SVt_PVHV) {
TRACEME(("tied hash"));
PUTMARK(SX_TIED_HASH); /* Introduces tied hash */
} else if (svt == SVt_PVAV) {
TRACEME(("tied array"));
PUTMARK(SX_TIED_ARRAY); /* Introduces tied array */
} else {
( run in 1.109 second using v1.01-cache-2.11-cpan-49f99fa48dc )