From 8de476573990fa8cc938a6ad450e0fb337234ff4 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Tue, 11 Sep 2012 20:22:57 -0700 Subject: Unify CvDEPTH for formats and subs As Dave Mitchell pointed out, while putting the CvDEPTH field for for- mats in the SvCUR slot might save memory for formats, it slows down sub calls because CvDEPTH is used on subs in very hot code paths. Checking the SvTYPE to determine which field to use should not be necessary. --- cv.h | 1 - 1 file changed, 1 deletion(-) (limited to 'cv.h') diff --git a/cv.h b/cv.h index 7c06727102..960ae1d05e 100644 --- a/cv.h +++ b/cv.h @@ -13,7 +13,6 @@ struct xpvcv { _XPV_HEAD; _XPVCV_COMMON; - I32 xcv_depth; /* >= 2 indicates recursive call */ }; /* -- cgit v1.2.1