lean4-htt/library/init
Leonardo de Moura 1cb22b6801 perf(library/init/lean/parser/command): move common command parsers to the beginning of the list
@kha This modification saved 150k object allocations on my machine.

BTW, the function
```
def command_parser.run (commands : list command_parser) (p : command_parser)
  : parser_t command_parser_config id syntax :=
λ cfg, (p.run cfg).run_parsec $ λ _, any_of $ commands.map (λ p, p.run cfg)
```
is also affected by the problem I described at Zulip. It is another
example where eager eta-expansion is bad. Every time we call it, we
will create approx. 20 closures and 20 cons memory cells. We have at
least 600 commands in core.lean. So, just the `map` nested there will
generate 24k memory allocations. Moreover, the problem will get worse as we add
more commands.
2018-11-08 14:45:34 -08:00
..
control fix(library/init): alternative instances 2018-10-17 14:25:50 -07:00
data refactor(library/init/data): make sure uint* and usize are irreducible 2018-11-06 16:55:02 -08:00
lean perf(library/init/lean/parser/command): move common command parsers to the beginning of the list 2018-11-08 14:45:34 -08:00
coe.lean fix(library/init): missing @[inline] 2018-09-18 21:42:22 -07:00
core.lean feat(library/init/core): mark thunk and task primitives with [noinline] 2018-11-02 13:54:40 -07:00
default.lean chore(library/init/meta): remove rest of old meta folder 2018-10-23 11:32:56 -07:00
env_ext.lean chore(library/init/env_ext): update 2018-09-11 13:55:25 -07:00
function.lean fix(library/init/function): missing @[inline] 2018-09-20 08:39:25 -07:00
init.md
io.lean chore(library/vm,library/init/meta): remove vm_format, and some obsolete meta objects 2018-10-23 11:32:56 -07:00
platform.lean feat(library/vm): add support for system.platform.nbits in the VM 2018-05-03 15:54:54 -07:00
util.lean chore(library/vm,library/init/meta): remove vm_format, and some obsolete meta objects 2018-10-23 11:32:56 -07:00
version.lean.in chore(leanpkg/lean_version): recognize nightlies as releases separate from master 2018-03-20 15:14:45 -07:00
wf.lean chore(library/init/wf): disable codegen for wf 2018-10-01 11:41:57 -07:00