debounce computation to improve perf