gristlabs_grist-core/sandbox
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
..
docker
grist (core) Compute sample_record lazily using a property 2022-03-25 20:07:32 +02:00
gvisor
gen_js_schema.py
install_tz.js
requirements3.txt
requirements.txt