made modifications to prevent double-setting the same priorities. Kept any/all hard-coded changes from Alpha for anything that didn't already have a setting created by Kenny. Essentially this is a merger of the two repos from Alpha and Kenny, keeping the changes that are relevant from each, while also keeping the thread priority settings in settings.json.

This will give us the best of both worlds (in theory), and dramatically improved overall network performance.
This commit is contained in:
crowetic 2024-11-01 14:49:54 -07:00
parent 209920b2f8
commit a0c7e3d94e
6 changed files with 0 additions and 6 deletions

View File

@ -132,7 +132,6 @@ public class Synchronizer extends Thread {
@Override
public void run() {
Thread.currentThread().setName("Synchronizer");
Thread.currentThread().setPriority(MAX_PRIORITY);
if (Settings.getInstance().isLite()) {
// Lite nodes don't need to sync

View File

@ -20,7 +20,6 @@ public class AtStatesPruner implements Runnable {
@Override
public void run() {
Thread.currentThread().setName("AT States pruner");
Thread.currentThread().setPriority(MIN_PRIORITY);
if (Settings.getInstance().isLite()) {
// Nothing to prune in lite mode

View File

@ -20,7 +20,6 @@ public class AtStatesTrimmer implements Runnable {
@Override
public void run() {
Thread.currentThread().setName("AT States trimmer");
Thread.currentThread().setPriority(MIN_PRIORITY);
if (Settings.getInstance().isLite()) {
// Nothing to trim in lite mode

View File

@ -25,7 +25,6 @@ public class BlockArchiver implements Runnable {
public void run() {
Thread.currentThread().setName("Block archiver");
Thread.currentThread().setPriority(NORM_PRIORITY);
if (!Settings.getInstance().isArchiveEnabled() || Settings.getInstance().isLite()) {
return;

View File

@ -20,7 +20,6 @@ public class BlockPruner implements Runnable {
@Override
public void run() {
Thread.currentThread().setName("Block pruner");
Thread.currentThread().setPriority(NORM_PRIORITY);
if (Settings.getInstance().isLite()) {
// Nothing to prune in lite mode

View File

@ -22,7 +22,6 @@ public class OnlineAccountsSignaturesTrimmer implements Runnable {
public void run() {
Thread.currentThread().setName("Online Accounts trimmer");
Thread.currentThread().setPriority(NORM_PRIORITY);
if (Settings.getInstance().isLite()) {
// Nothing to trim in lite mode