Repository navigation
Commit 346b856
committed
doc-links(cs): a unit step no directive can give anything asks no memo (R1)
The unit memo of the previous commit was asked -- the run's lock taken, an
entry made -- for every unit step, also when the unit has no directive or
its index rules the name out, where the walk returned at once before.
That is lock traffic and memory for most projects, which have no global
usings.
The test that walk starts with is now one function (usings_may_give),
asked before the memo too. The work counts of the doc_mentions cost tests
are those from before the memo again, except where unit directives can
give the name: one memo probe per lookup there.
Test: cs_unit_usings_across_files_work and cs_unit_usings_unchanged as
before (768 -> 1520 steps; without the memo 17003 -> 64403).
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>1 parent 19783ed commit 346b856
1 file changed
Lines changed: 19 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4645 | 4645 | | |
4646 | 4646 | | |
4647 | 4647 | | |
| 4648 | + | |
| 4649 | + | |
| 4650 | + | |
| 4651 | + | |
| 4652 | + | |
| 4653 | + | |
| 4654 | + | |
| 4655 | + | |
| 4656 | + | |
| 4657 | + | |
| 4658 | + | |
| 4659 | + | |
| 4660 | + | |
4648 | 4661 | | |
4649 | 4662 | | |
4650 | 4663 | | |
4651 | | - | |
| 4664 | + | |
| 4665 | + | |
4652 | 4666 | | |
4653 | 4667 | | |
4654 | | - | |
4655 | 4668 | | |
4656 | | - | |
4657 | | - | |
4658 | | - | |
4659 | 4669 | | |
4660 | 4670 | | |
4661 | 4671 | | |
| |||
4861 | 4871 | | |
4862 | 4872 | | |
4863 | 4873 | | |
| 4874 | + | |
| 4875 | + | |
| 4876 | + | |
| 4877 | + | |
4864 | 4878 | | |
4865 | 4879 | | |
4866 | 4880 | | |
| |||
4891 | 4905 | | |
4892 | 4906 | | |
4893 | 4907 | | |
4894 | | - | |
4895 | 4908 | | |
4896 | 4909 | | |
4897 | 4910 | | |
| |||
0 commit comments