summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | add udp to runtimetrinity-1686a2022-03-1416-37/+314
|/ /
* | Merge branch 'testing-docs' into 'main'Nick Mathewson2022-03-142-0/+344
|\ \ | | | | | | | | | | | | New documents to checkpoint my work on #329 and #87 See merge request tpo/core/arti!407
| * | Apply 1 suggestion(s) to 1 file(s)eta2022-03-141-1/+1
| | |
| * | New documents to checkpoint my work on #329 and #87Nick Mathewson2022-03-142-0/+344
| | | | | | | | | | | | | | | | | | | | | | | | | | | These documents explain how to profile arti for CPU and memory, and how to simulate different kinds of breakage and misconfiguration. They aren't at all in their final form, but I figure it's useful to check them in so that more people can look at them, and make suggestions.
* | | Merge branch 'intern-more' into 'main'Nick Mathewson2022-03-149-25/+91
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | tor-netdoc: use InternCache to save memory for families and protover lists Closes #384 and #385 See merge request tpo/core/arti!398
| * \ \ Merge branch 'main' into 'intern-more'Nick Mathewson2022-03-1414-99/+45
| |\ \ \ | |/ / / |/| | | | | | | # Conflicts: # doc/semver_status.md
* | | | Merge branch 'missing_shrink_to_fit' into 'main'eta2022-03-141-0/+7
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | dirmgr: Call shrink_to_fit on missing-microdesc hashtable Closes #388 See merge request tpo/core/arti!399
| * | | dirmgr: Call shrink_to_fit on missing-microdesc hashtableNick Mathewson2022-03-101-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This hashtable starts out pretty large, but it can spend most of our runtime (when we aren't downloading) being small. To avoid doing too much work, I've made it so we only call shrink_to_fit twice per consensus: once when we're no longer pending, and once when we're complete. Closes #388.
* | | | Merge branch 'slice-from-ref' into 'main'eta2022-03-143-49/+22
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Simpify tor-netdoc TokVal See merge request tpo/core/arti!404
| * | | | tor-netdoc: Actually, make TokVal be a VecIan Jackson2022-03-113-46/+22
| | | | | | | | | | | | | | | | | | | | | | | | | This enum was otiose: its set of valid values is precisely those of a Vec. (Indeed what would TokVal::Multi(vec![]) have meant?)
| * | | | Remove a pointless sliceIan Jackson2022-03-111-10/+7
| | | | | | | | | | | | | | | | | | | | std::slice::from_ref exists. Spotted while reviewing !400
* | | | | Merge branch 'humantime' into 'main'eta2022-03-1411-51/+18
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace humantime_serde_option with upstream code Closes #396 See merge request tpo/core/arti!406
| * | | | | humantime_serde_option: Add note about semverIan Jackson2022-03-141-1/+5
| | | | | |
| * | | | | Revert "humantime_serde_option: New module in tor-basic-utils"Ian Jackson2022-03-144-35/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have upstreamed this code. This reverts commit 6193c9d9742d1d19a45a0ee1c383858201304912.
| * | | | | Use new upstream humantime_serde_option featureIan Jackson2022-03-142-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | Replace all uses of our copy of this code.
| * | | | | humantime: Update to humantime-serde 1.1.1Ian Jackson2022-03-145-6/+6
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has the humantime_serde::option module, which we have upstreamed and are about to switch to. The remaining dependency with version = "1" is going to be removed in a moment.
| | | * | Canonicalize and intern protover lines on descriptorsNick Mathewson2022-03-116-17/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should save around 1MB per consensus, since every relay has a 'protocols' lines, but there are only a few distinct possibilities for such a line. Closes #385.
| | | * | Canonicalize and intern family representations to save memory.Nick Mathewson2022-03-114-9/+57
| |_|/ / |/| | | | | | | | | | | | | | | | | | | This should save 1-3 MB of ram on each running arti client. Closes #384. See also tor#27359 and proposal 298.
* | | | Merge branch 'arti-lib' into 'main'Ian Jackson2022-03-118-268/+329
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | arti: Move all code from binary crate to library crate See merge request tpo/core/arti!403
| * | | | arti library crate: Add another note about panickingIan Jackson2022-03-111-0/+4
| | | | |
| * | | | arti library crate: re-add clippy lintsIan Jackson2022-03-111-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I ought to have c&p these. As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/403#note_2786099
| * | | | arti library crate: Add note about panickingIan Jackson2022-03-111-0/+4
| | | | |
| * | | | Add note about semver.Ian Jackson2022-03-111-0/+4
| | | | |
| * | | | arti: Make main module entrypoints pubIan Jackson2022-03-116-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | This does not constitute any kind of stable API promise. But it might allow people to use our arti client code in novel ways.
| * | | | arti: Provide some rubric docs.Ian Jackson2022-03-111-0/+8
| | | | |
| * | | | arti: Move all code from binary crate to library crateIan Jackson2022-03-112-261/+269
| | | | | | | | | | | | | | | | | | | | This is just code motion and the minimal fixups.
* | | | | Merge branch 'smaller_routerstatus' into 'main'Nick Mathewson2022-03-117-32/+93
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | tor-netdoc: Save allocation space in GenericRouterstatus Closes #387 See merge request tpo/core/arti!400
| * | | | Add a more generic implementation of intern-by-refNick Mathewson2022-03-112-4/+12
| | | | |
| * | | | Add a missing newline.Nick Mathewson2022-03-111-1/+1
| | | | |
| * | | | netdoc: Call shrink_to_fit() when we're done parsing rs sectionsNick Mathewson2022-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | (Once we're done parsing these, the vector will never get any longer.)
| * | | | netdoc: allocate no extra space for RouterStatus addresses.Nick Mathewson2022-03-111-5/+6
| | | | | | | | | | | | | | | | | | | | This should save around 181K of heap on a current directory.
| * | | | netdoc: Make versions smaller in GenericRouterStatusNick Mathewson2022-03-115-11/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the version is a Tor version, we can just parse it; otherwise, we can intern it. This shrinks GenericRouterStatus and avoids a lot of extra help allocations.
| * | | | tor-netdoc: reformat cargo.toml.Nick Mathewson2022-03-111-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | This is the default vscode format, and seems popular elsewhere. This commit does nothing but reformat.
| * | | | tor-netdoc: Remove unused or_port field from RS.Nick Mathewson2022-03-112-6/+0
| | | | | | | | | | | | | | | | | | | | Part of #387
* | | | | Merge branch 'config-flatten' into 'main'Ian Jackson2022-03-113-136/+40
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | Make ArtiConfigBuilder contain a TorClientConfigBuilder See merge request tpo/core/arti!401
| * | | | config work: Add semver note.Ian Jackson2022-03-111-0/+5
| | | | |
| * | | | rustfmtIan Jackson2022-03-112-12/+16
| | | | |
| * | | | Make ArtiConfigBuilder contain a TorClientConfigBuilderIan Jackson2022-03-111-135/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an API break: now one must use `.tor()` to access the Tor configuration parts. But it is not a config file format break, because `#[serde(flatten)]`.
| * | | | Make TorClientConfigBuilder DeserializeIan Jackson2022-03-111-0/+11
| |/ / / | | | | | | | | | | | | As per #371
* | | | Merge branch 'mr318_followup' into 'main'Nick Mathewson2022-03-113-2/+20
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Follow-up from arti!318 See merge request tpo/core/arti!402
| * | | | Follow-up from arti!318Nick Mathewson2022-03-113-2/+20
|/ / / / | | | | | | | | | | | | Make update_config only conditionally exported; add semver-status update.
* | | | Merge branch 'add-flatfile-dirmgr' into 'main'Nick Mathewson2022-03-116-12/+54
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Add flatfile DirMgr See merge request tpo/core/arti!318
| * | | Expose APIs for external DirProviderChristian Grigis2022-03-114-12/+23
| | | |
| * | | Add methods to `UnverifiedConsensus`Christian Grigis2022-03-102-0/+31
| | | |
* | | | Merge branch 'chutney-without-proxy' into 'main'Nick Mathewson2022-03-114-33/+58
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | tests/chutney: Merge chutney-launching scripts See merge request tpo/core/arti!396
| * | | | tests/chutney/setup: Transfer changes from just-deleted codeIan Jackson2022-03-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that the clone-and-hack in tests/chutney/arti-bench was not identical to the original in tests/chutney/setup. I diffed the two and preferred the version from arti-bench.
| * | | | tests/chutney: Merge chutney-launching scriptsNick Mathewson2022-03-104-30/+55
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Formerly, the "launch a chutney network" code was duplicated in "setup" and "arti-bench", since "setup" always launched an arti proxy, while "arti-bench" didn't want that functionality. Now the "setup" script launches an arti proxy conditionally, depending on whether the "proxy" argument is given.
* | | | Merge branch 'config-no-retcon' into 'main'Ian Jackson2022-03-1019-286/+120
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Drop config back-conversion from FooConfig to FooConfigBuilder See merge request tpo/core/arti!391
| * | | Drop remaining conversion from FooConfig to FooConfigBuilderIan Jackson2022-03-075-152/+1
| | | |
| * | | Have ArtiConfig contain a TorClientConfig, and drop builder retconIan Jackson2022-03-073-140/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace the recapitulation of TorClientConfig fields in ArtiConfig and instead just have it contain one. This is part of #374. The conversions from ArtiConfig back to ArtiConfigBuilder and TorClientConfigBuilder would need to change, but, since we don't want them anyway, No longer impl Deserialize for ArtiConfig. (As per #371 this will want to become a private type.) No longer impl From<ArtiConfig> for ArtiConfigBuilder and TorClientConfigBuilder. And abolish tests of that code. (This all has to be in one commit, because previously ArtiConfig::tor_client_config used the validated-to-builder config retcon.)