Skip to content

Commit

Permalink
Adapt nameToHintMap to fastutil
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterDuke17 committed Apr 4, 2024
1 parent 23a9fdb commit 955bc85
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/vm/jvm/runtime/org/raku/rakudo/Binder.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,8 @@ private static int assignAttributive(ThreadContext tc, CallFrame cf, String varN
since *trying* to get a container would throw already, we first check
if the target Attribute is native. */
int hint = -1;
for (HashMap<String, Integer> map : ((P6OpaqueREPRData) (attrPackage.st.REPRData)).nameToHintMap) {
try {
hint = map.get(varName);
}
catch (Exception e) {
continue;
}
for (Object2IntOpenHashMap<String> map : ((P6OpaqueREPRData) (attrPackage.st.REPRData)).nameToHintMap) {
hint = map.getOrDefault(varName, -1);
}
REPR attrREPR = null;
if (((P6OpaqueREPRData) (attrPackage.st.REPRData)).flattenedSTables[hint] != null) {
Expand Down

0 comments on commit 955bc85

Please sign in to comment.