immutable data structures in tables 3/n: searchable table

Summary:
Migrating tables' row collection to Immutable.js List:
1. Сopy SearchableTable code to SearchableTable_immutable
2. Use ManagedTable_immutable for SearchableTable_immutable

-----
Current implementation of tables forces to copy arrays on new data arrival which causes O(N^2) complexity ->
tables can't handle a lot of new rows in short period of time -> tables freeze and become unresponsive for a few seconds.
Immutable data structures will bring us to O(N) complexity

Reviewed By: jknoxville

Differential Revision: D16416732

fbshipit-source-id: 856ba0407bfdd12bb1b90110e130562a07cc5060
This commit is contained in:
Timur Valiev
2019-07-23 07:57:00 -07:00
committed by Facebook Github Bot
parent 6deaf2106f
commit d3658f7d31
2 changed files with 149 additions and 0 deletions

View File

@@ -158,6 +158,9 @@ export {
export {
default as SearchableTable,
} from './components/searchable/SearchableTable.js';
export {
default as SearchableTable_immutable,
} from './components/searchable/SearchableTable_immutable.js';
export type {SearchableProps} from './components/searchable/Searchable.js';
//