lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [lucenenet] jeme commented on a change in pull request #347: Move call to debugging flag out of loops calling FixedBitSet.Get/Set
Date Fri, 25 Sep 2020 09:34:45 GMT

jeme commented on a change in pull request #347:

File path: src/Lucene.Net/Support/Diagnostics/Debugging.cs
@@ -26,6 +26,9 @@ namespace Lucene.Net.Diagnostics
     /// </summary>
     internal static class Debugging
+        // LUCENENET specific - use a lazy wrapper around SystemProperties to avoid the repeated
cost of getting the value
+        private static Lazy<bool> _assertsEnabled = new Lazy<bool>(() => SystemProperties.GetPropertyAsBoolean("assert",

Review comment:
       I don't think this matches the naming convention that Lucene.NET uses, I haven't seen
the Underscore prefix used anywhere in the codebase. I know Resharper (if your using that,
perhaps Lucene.NET should come with a Resharper config file, it's a rather popular tool after
all, although I can't recommend it for the Lucene project due to it's size >.<) suggests
this and it's perhaps common in the MS codebases, but not here., @NightOwl888

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:

View raw message