cat / 012
clone

a spreadsheet for the terminal: lotus 1-2-3 looks, google sheets keys and formulas, one go binary

max-cells: ten million by default, with a stress shape at that size

Dami committed bcafcef
Ten million cells of numbers take 205 MB with the compact store. The
dense-1Mx10 shape (a million rows of ten numbers) builds, edits, undoes,
saves and opens at that size, and BenchmarkMemory reports its heap per
cell.
commit
bcafcef8be8d18977faa0f34f775c9d9c32ad827
parent
ad611c4e4c1f3ee17e61c436356112a9f786f60b
author
Dami <dami.etoile@gmail.com>
6 files changed, +22 -11
Mdocs/files/README.md4++--
Mdocs/reference/config.md6+++---
Minternal/config/registry.go7++++---
Minternal/sheet/ops.go6+++---
Minternal/sheet/stress_test.go2++
Minternal/stress/gen.go8++++++++
M docs/files/README.md +2 -2
M docs/reference/config.md +3 -3
@@ -71,7 +71,7 @@ start.
7171 | [`chart-images`](#chart-images) | `true` | `O12_CHART_IMAGES` |7272 | [`notifications`](#notifications) | `true` | `O12_NOTIFICATIONS` |7373 | [`keymap`](#keymap) | `default` | `O12_KEYMAP` |74-| [`max-cells`](#max-cells) | `2000000` | `O12_MAX_CELLS` |74+| [`max-cells`](#max-cells) | `10000000` | `O12_MAX_CELLS` |7575 | [`jev-api-key-command`](#jev-api-key-command) | | |7676 | [`jev-credential-store`](#jev-credential-store) | `true` | `O12_JEV_CREDENTIAL_STORE` |7777 | [`jev-base-url`](#jev-base-url) | | `TYPESAFE_BASE_URL` |
@@ -137,12 +137,12 @@ Keys in the grid. `default` works like Google Sheets; `vim` adds hjkl, counts, o
137137 138138 #### `max-cells`139139 140-The most cells an import keeps, and a paste or fill writes at once. A sheet takes about 300 bytes a cell, so the default of two million is about 600 MB. Imports keep whole rows up to the budget and say how many they left out; larger pastes and fills are refused. The grid itself is 1,048,576 rows by 16,384 columns (A to XFD) whatever this is.140+The most cells an import keeps, and a paste or fill writes at once. Numbers and text take 20 to 60 bytes a cell and formulas about 750, so the default of ten million cells of data is 200 to 600 MB. Imports keep whole rows up to the budget and say how many they left out; larger pastes and fills are refused. The grid itself is 1,048,576 rows by 16,384 columns (A to XFD) whatever this is.141141 142142 | | |143143 |---|---|144144 | Type | number |145-| Default | `2000000` |145+| Default | `10000000` |146146 | Environment | `O12_MAX_CELLS` |147147 | Applies | File > Settings > Reload config |148148
M internal/config/registry.go +4 -3
M internal/sheet/ops.go +3 -3
M internal/sheet/stress_test.go +2 -0
M internal/stress/gen.go +8 -0