mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
loosened the tight restraints table imposes to try and ensure smooth rendering
This commit is contained in:
parent
608bfe8851
commit
43605fa819
1 changed files with 4 additions and 3 deletions
|
@ -114,8 +114,8 @@ define(function (require) {
|
|||
var timing;
|
||||
|
||||
if (
|
||||
performance
|
||||
&& rowsPerTick === void 0
|
||||
rowsPerTick === void 0
|
||||
&& typeof window.performance === 'object'
|
||||
&& typeof performance.now === 'function'
|
||||
) {
|
||||
timing = performance.now();
|
||||
|
@ -129,11 +129,12 @@ define(function (require) {
|
|||
.forEach(forEachRow);
|
||||
|
||||
if (timing) {
|
||||
// we know we have performance.now, because timing was set
|
||||
var time = performance.now() - timing;
|
||||
var rowsRendered = rowsPerTick;
|
||||
var msPerRow = time / rowsPerTick;
|
||||
// aim to fit the rendering into 5 milliseconds
|
||||
rowsPerTick = Math.ceil(5 / msPerRow);
|
||||
rowsPerTick = Math.ceil(15 / msPerRow);
|
||||
console.log('completed render of %d rows in %d milliseconds. rowsPerTick set to %d', rowsRendered, time, rowsPerTick);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue