3 ms·
Interesting! Why are the numbers/bar chart values bouncing around? Is it making the same query from everyone's browser when you load the page?
by eatonphil 5y ago
Interesting! Why are the numbers/bar chart values bouncing around? Is it making the same query from everyone's browser when you load the page?
- plibither8 5y agoChecked the network logs - it seems to perform an API query [0] which returns a stream of data, that's then computed upon on-the-fly in the browser. [0]: https://sourcegraph.com/.api/compute/stream?q=context%3A%40r%2Fgo-100-gh%20lang%3Ago%20content%3Aoutput((type%20%5Cw*%20interface)%20-%3E%20%241%20(group%20by)%20%24repo)%20count%3Aall https://sourcegraph.com/.api/compute/stream?q=context%3A%40r...
- slimsag 5y agoThat's right, it streams every search result match back to your browser and the Elm code on the frontend then calculates the stats live. So the reason they bounce around is because new results are streaming in, and it's updating the chart live based on those. After a little bit it will stop & have found all results