forked from aces/Loris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Optimization/dataquery] Remove unnecessary array (aces#9348)
The InstrumentQueryEngine converts the results of a query that returns all values from an iterator to an array because it's used twice. However, the second usage is unnecessary as the data is available in another way. This switches the second usage to be array_keys of a variable created in the first iteration and removes the iterator_to_array, which should result in less memory usage as it can be freed after the first iteration.
- Loading branch information
1 parent
a95d9df
commit 256a850
Showing
2 changed files
with
5 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters