Update #24 - 1000s of optimizations, shared worlds on desktop

This commit is contained in:
lax1dude
2024-03-02 20:51:44 -08:00
parent a50c93cb75
commit 8ab65942c5
624 changed files with 8091 additions and 3620 deletions

View File

@ -390,7 +390,8 @@ public abstract class BaseNCodec {
if (arrayOctet == null) {
return false;
}
for (final byte element : arrayOctet) {
for (int i = 0; i < arrayOctet.length; ++i) {
byte element = arrayOctet[i];
if (pad == element || isInAlphabet(element)) {
return true;
}
@ -624,7 +625,8 @@ public abstract class BaseNCodec {
* the byte array is empty; {@code false}, otherwise
*/
public boolean isInAlphabet(final byte[] arrayOctet, final boolean allowWSPad) {
for (final byte octet : arrayOctet) {
for (int i = 0; i < arrayOctet.length; ++i) {
byte octet = arrayOctet[i];
if (!isInAlphabet(octet) && (!allowWSPad || (octet != pad) && !isWhiteSpace(octet))) {
return false;
}