sebkeim / insrcdata

embed your data
GNU General Public License v3.0
0 stars 0 forks source link

Optimisation by reordering #7

Open sebkeim opened 1 year ago

sebkeim commented 1 year ago

We could sort table rows to avoid the creation of one index array.

This kind of direct table search will probably be a little faster than index based search (thanks to cache optimization). So table should be sorted on the most used indexed column; and this column should be the first of the row.

Reordering can be disabled with the 'sorted' flag in table section in .toml configuration file.