mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
does not create a reference on a isUsed check to reduce memory usage
This commit is contained in:
parent
daaa648a04
commit
c4d4bf04be
@ -345,12 +345,8 @@ class FunctionManager {
|
||||
* @return true, if used
|
||||
*/
|
||||
boolean isUsed( @Nonnull FunctionName name ) {
|
||||
switch( getOrCreate( name ).state ) {
|
||||
case None:
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
FunctionState state = states.get( name );
|
||||
return state != null && state.state != State.None;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user