From 25ad59d89565f66b3555355575ed2ff9f00e370d Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Tue, 13 Jun 2023 23:40:18 +1000 Subject: [PATCH] Replace type check with enum (int) comparison in `Watch` --- src/BizHawk.Client.Common/tools/Watch/Watch.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/BizHawk.Client.Common/tools/Watch/Watch.cs b/src/BizHawk.Client.Common/tools/Watch/Watch.cs index ee63772085..44689faf01 100644 --- a/src/BizHawk.Client.Common/tools/Watch/Watch.cs +++ b/src/BizHawk.Client.Common/tools/Watch/Watch.cs @@ -540,7 +540,12 @@ namespace BizHawk.Client.Common /// /// Gets a value that defined if the current is actually a /// - public bool IsSeparator => this is SeparatorWatch; + public bool IsSeparator +#if true // haven't profiled it but this must be faster --yoshi + => Size is WatchSize.Separator; +#else + => this is SeparatorWatch; +#endif /// /// Gets or sets notes for current