mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-18 21:14:14 -04:00
* Fixed entrypoint writing bad json (from develop) * Fixed a bug where log file could write out a crap ton of information (serializing Series object) when a db error occurs. * Fixed an issue with scan loop where concurrency issues could occur on new series being added. * Tweaked the logger to suppress some noisy logs when using Debug log level. * Fixed a regression with epub parsing from v3.2 of Vers-One's release * Fixed up folder watching to work more reliable. Validated in production. * Code cleanup
27 lines
602 B
C#
27 lines
602 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Text.RegularExpressions;
|
|
using BenchmarkDotNet.Attributes;
|
|
using BenchmarkDotNet.Order;
|
|
|
|
namespace API.Benchmark;
|
|
|
|
[MemoryDiagnoser]
|
|
public static class CleanTitleBenchmarks
|
|
{
|
|
private static IList<string> _names;
|
|
|
|
[GlobalSetup]
|
|
public static void LoadData() => _names = File.ReadAllLines("Data/Comics.txt");
|
|
|
|
[Benchmark]
|
|
public static void TestCleanTitle()
|
|
{
|
|
foreach (var name in _names)
|
|
{
|
|
Services.Tasks.Scanner.Parser.Parser.CleanTitle(name, true);
|
|
}
|
|
}
|
|
}
|