mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-19 11:08:20 -05:00
Remove memory allocations in some hot paths
This commit is contained in:
@ -134,8 +134,8 @@ u32 NodeStates::GetNodeCount() const {
|
||||
return node_count;
|
||||
}
|
||||
|
||||
std::vector<s32> NodeStates::GetSortedResuls() const {
|
||||
return {results.rbegin(), results.rbegin() + result_pos};
|
||||
std::pair<std::span<u32>::reverse_iterator, size_t> NodeStates::GetSortedResuls() const {
|
||||
return {results.rbegin(), result_pos};
|
||||
}
|
||||
|
||||
} // namespace AudioCore::AudioRenderer
|
||||
|
@ -175,7 +175,7 @@ public:
|
||||
*
|
||||
* @return Vector of nodes in reverse order.
|
||||
*/
|
||||
std::vector<s32> GetSortedResuls() const;
|
||||
std::pair<std::span<u32>::reverse_iterator, size_t> GetSortedResuls() const;
|
||||
|
||||
private:
|
||||
/// Number of nodes in the graph
|
||||
|
Reference in New Issue
Block a user