mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
8bab8c18fa
Summary: When a formula raises an exception, we store that in the cell in memory. In Python 3, exceptions have a `__traceback__` attribute, which includes all the stack frames and local variables. This has huge memory leak potential. We already strategically format the exception when needed, we don't need to keep storing the actual traceback object. Test Plan: Manually tested that tracebacks are still sensible. To check the effect on memory usage, made a simple test doc with 30k rows all containing an exception, and here's what ps aux says: ``` %MEM VSZ RSS before: 2.4 681996 588828 after: 1.6 499052 405712 ``` Reviewers: dsagal Reviewed By: dsagal Subscribers: dsagal Differential Revision: https://phab.getgrist.com/D3505 |
||
---|---|---|
.. | ||
docker | ||
grist | ||
gvisor | ||
gen_js_schema.py | ||
install_tz.js | ||
requirements3.txt | ||
requirements.txt | ||
run.sh | ||
watch.sh |