We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TaskMetaData has the following code where profiles map is used twice to get same value:
profiles
public void addProfile(int id) { final TornadoAcceleratorDevice device = getLogicDevice(); BitSet events; profiles.computeIfAbsent(device, k -> new BitSet(EVENT_WINDOW)); events = profiles.get(device); events.set(id); }
The simpler version is:
public void addProfile(int id) { BitSet events = profiles.computeIfAbsent(getLogicDevice(), k -> new BitSet(EVENT_WINDOW)); events.set(id); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
TaskMetaData has the following code where
profiles
map is used twice to get same value:The simpler version is:
The text was updated successfully, but these errors were encountered: