cat / 012
clone

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

Sort named ranges by their keys

Dami committed 1ec8e70
Names sorted by nameKey, upper-casing both names in every comparison.
The formula bar looks up the selection's name on every frame, so 1000
names cost 20,000 allocations a frame. The map keys are already upper
case.

  View/names-1000/80x24     662 us, 21k allocs -> 193 us, 700 allocs
  View/names-1000/400x120  1.48 ms            -> 1.00 ms
commit
1ec8e70633160b80dbe5066fc1b8356104fe92f5
parent
e1daf4c58fb2e7ed65e21bad36c0053d21be80d0
author
Dami <dami.etoile@gmail.com>
1 file changed, +8 -3
Minternal/sheet/names.go11++++++++---
M internal/sheet/names.go +8 -3