mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): use lruMemoize for argsMemoize on selectors
This provides a small performance improvement, on the order of a few ms per interaction.
This commit is contained in:
parent
34e7b5a7fb
commit
e698a8006c
@ -9,6 +9,7 @@ export const createMemoizedSelector = createSelectorCreator({
|
||||
memoizeOptions: {
|
||||
resultEqualityCheck: isEqual,
|
||||
},
|
||||
argsMemoize: lruMemoize,
|
||||
});
|
||||
|
||||
/**
|
||||
@ -16,4 +17,5 @@ export const createMemoizedSelector = createSelectorCreator({
|
||||
*/
|
||||
export const createLruSelector = createSelectorCreator({
|
||||
memoize: lruMemoize,
|
||||
argsMemoize: lruMemoize,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user