add throws and enhance performance

This commit is contained in:
Qrakhen 2025-11-18 17:06:45 +01:00
parent 64ab1d8fad
commit 53fdea4d18
2 changed files with 5 additions and 0 deletions

View File

@ -285,11 +285,13 @@ public class Digester : ISteppable<Token>
internal void Export() internal void Export()
{ {
_logger.Method(); _logger.Method();
throw new NotImplementedException($"Import is not yet implemented. Sorry, it's difficult.");
} }
internal void Import() internal void Import()
{ {
_logger.Method(); _logger.Method();
throw new NotImplementedException($"Import is not yet implemented. Sorry, it's difficult.");
} }
internal void If() internal void If()

View File

@ -148,6 +148,9 @@ public class Logger : ILogger, ILogFormatter
public void Method(object? value = null, [CallerMemberName] string? caller = null) public void Method(object? value = null, [CallerMemberName] string? caller = null)
{ {
if (Level < LogLevel.Trace)
return; // save some ticks here
if (caller == null) if (caller == null)
{ {
var st = new StackTrace(); var st = new StackTrace();