Files
gristlabs_grist-core/sandbox/grist
Alex Hall 4ce492b9e5 (core) Compute sample_record lazily using a property
Summary: This changes Table.sample_record from a regular attribute to a property that's only computed when it's needed, which is only for autocompletion. This means it's not cached any more, but it's also not recomputed every time the schema changes. Profiling showed that _make_sample_record took a signification portion of time, and this change makes the tests 2 or 3 seconds faster.

Test Plan: existing tests

Reviewers: paulfitz

Reviewed By: paulfitz

Subscribers: paulfitz

Differential Revision: https://phab.getgrist.com/D3334
2022-03-25 20:07:32 +02:00
..
2022-03-08 12:14:39 +02:00
2022-02-19 09:46:49 +00:00
2022-03-08 12:14:39 +02:00
2020-07-29 08:57:25 -04:00
2022-03-08 12:14:39 +02:00
2022-03-23 13:15:02 +01:00
2022-03-23 13:15:02 +01:00
2022-02-19 09:46:49 +00:00
2022-02-19 09:46:49 +00:00