Reduced redundant linked list implementation
This commit is contained in:
1 parent
c30bd0f122
commit
1e7146f208
30 files changed
+444
-423
No files matched your search
@@ -279,13 +279,13 @@ public class Component {
|
||||
|
||||
public static Image24 method207(int i, FileArchive archive, String s) {
|
||||
long l = (StringUtil.hashCode(s) << 8) + (long) i;
|
||||
Image24 image = (Image24) aCache_238.method222(l);
|
||||
Image24 image = (Image24) aCache_238.get(l);
|
||||
if (image != null) {
|
||||
return image;
|
||||
}
|
||||
try {
|
||||
image = new Image24(archive, s, i);
|
||||
aCache_238.method223(image, l);
|
||||
aCache_238.put(l, image);
|
||||
} catch (Exception _ex) {
|
||||
return null;
|
||||
}
|
||||
@@ -293,9 +293,9 @@ public class Component {
|
||||
}
|
||||
|
||||
public static void method208(int i, int j, Model model) {
|
||||
A_CACHE___264.method224();
|
||||
A_CACHE___264.clear();
|
||||
if ((model != null) && (j != 4)) {
|
||||
A_CACHE___264.method223(model, ((long) j << 16) + i);
|
||||
A_CACHE___264.put(((long) j << 16) + i, model);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ public class Component {
|
||||
}
|
||||
|
||||
public Model method206(int i, int j) {
|
||||
Model model = (Model) A_CACHE___264.method222(((long) i << 16) + j);
|
||||
Model model = (Model) A_CACHE___264.get(((long) i << 16) + j);
|
||||
if (model != null) {
|
||||
return model;
|
||||
}
|
||||
@@ -329,7 +329,7 @@ public class Component {
|
||||
model = null;
|
||||
}
|
||||
if (model != null) {
|
||||
A_CACHE___264.method223(model, (i << 16) + j);
|
||||
A_CACHE___264.put((i << 16) + j, model);
|
||||
}
|
||||
return model;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user