我有计算字节数组的STM crc32的函数。问题是5120字节数组需要20ms,这肯定太长了。有一个选项可以提高这段代码的速度,最大可能需要5ms左右?
代码:
var options = new SQLiteStorageOptions();
GlobalConfiguration.Configuration.UseSQLiteStorage("SQLiteHangfire", options);
var option = new BackgroundJobServerOptions { WorkerCount = Environment.ProcessorCount * 10 };
app.UseHangfireServer(option);