I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit 4033191c authored by zzz's avatar zzz
Browse files

Util: Don't classify ARM servers as slow (Github #77)

parent e3d3c0b6
No related branches found
No related tags found
No related merge requests found
......@@ -80,8 +80,14 @@ public abstract class SystemVersion {
(DAEMON_USER.equals(System.getProperty("user.name")) ||
(_isGentoo && GENTOO_USER.equals(System.getProperty("user.name"))));
_isService = _isLinuxService || _isWindowsService;
// we assume the Apple M1 is not slow, however isSlow() below will still return true until we have a jbigi
_isSlow = _isAndroid || _isApache || (_isArm && !_isMac) || _isGNU || _isZero || getMaxMemory() < 96*1024*1024L;
// We assume the Apple M1 is not slow, and we do have a jbigi for it
// Windows ARM will be still be slow because we don't have a jbigi for it, see isSlow()
// Linux ARM we assume is fast if 5 cores or more, those are probably servers,
// all the Raspberry Pis have 4 cores and will be classed as slow.
// Might be nice to draw the line between slow Rasp. Pi 3 and fast Rasp. Pi 4 but hard to do here.
_isSlow = _isAndroid || _isApache ||
(_isArm && (!_is64 || (!_isMac && getCores() < 5))) ||
_isGNU || _isZero || getMaxMemory() < 96*1024*1024L;
int sdk = 0;
if (_isAndroid) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment