physical-lock: Remove generated IsZero logic.
The purpose of the IsZero logic was as a speed-up; the normal vom
zero-field encoding is slow, since it actually encodes fields and
then backtracks to throw away zero-valued fields. However the
generated IsZero was actually significantly *slower*, for the
native types case, and possibly also the non-native types case.
In the future we will re-enable the IsZero logic for simple
cases (no native types, no typeobject or union). And we may
enable IsZero for the more complicated cases, if we can come up
with a simple strategy that is actually faster that the default
backtracking implementation.
MultiPart: 5/6
Change-Id: I314a0ee48948c0b4b13f0ac36719fd893b4e0689
diff --git a/go/src/v.io/x/lock/lock.vdl.go b/go/src/v.io/x/lock/lock.vdl.go
index 7e03a3b..b6da3a3 100644
--- a/go/src/v.io/x/lock/lock.vdl.go
+++ b/go/src/v.io/x/lock/lock.vdl.go
@@ -49,12 +49,6 @@
return nil
}
-func (m LockStatus) IsZero() bool {
-
- var1 := (m == LockStatus(0))
- return var1
-}
-
func init() {
vdl.Register((*LockStatus)(nil))
}