Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(index): lightweight structure #57

Merged
merged 42 commits into from
Aug 27, 2024
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
4cdbe79
feat(index): add dedicated struct+impl
cmdoret Aug 20, 2024
b001c5d
feat: serde-based index creation
cmdoret Aug 20, 2024
fe101a2
refactor(rules): use index struct [WIP]
cmdoret Aug 20, 2024
16ab28d
feat(rules): type pred matching
cmdoret Aug 20, 2024
9811272
style: formatting
cmdoret Aug 20, 2024
af6fe3f
refactor(index): make hasher short-lived
cmdoret Aug 21, 2024
5f2af98
feat(io): index parser
cmdoret Aug 21, 2024
cc31ae6
feat(pseudo): use new index struct
cmdoret Aug 21, 2024
4c823fe
refactor: better index function naming
cmdoret Aug 21, 2024
4032b3b
test(rules): use new index in rules tests
cmdoret Aug 21, 2024
2fab215
test(rules): update index macro to use TypeIndex
cmdoret Aug 21, 2024
8cca4c1
refactor(index): from_map -> from_iter
cmdoret Aug 21, 2024
32e711c
chore: rm unused import
cmdoret Aug 21, 2024
f612fe6
style: formatting
cmdoret Aug 21, 2024
e69a9d1
test(pseudo): update test index
cmdoret Aug 21, 2024
d487733
chore(deps): add smallvec
cmdoret Aug 22, 2024
f7d60f4
refactor(index): use smallvec
cmdoret Aug 22, 2024
28e3615
perf(log): reduce reserved mem
cmdoret Aug 22, 2024
95d6563
test(rules): fix default for index macro
cmdoret Aug 22, 2024
cad8af7
perf(bench): add benchmark script
cmdoret Aug 22, 2024
4f9146c
perf(bench): can select binary profile
cmdoret Aug 25, 2024
afd0844
chore(bench): release as default profile
cmdoret Aug 25, 2024
7d5ebeb
perf(index): hashes as u64 instead of String
cmdoret Aug 26, 2024
0fc975c
docs(bench): comment script
cmdoret Aug 26, 2024
132f688
chore(deps): add serde_json
cmdoret Aug 26, 2024
c496272
refactor(index): yaml -> json
cmdoret Aug 26, 2024
d38acb7
style: format+clippy recommendations
cmdoret Aug 26, 2024
5b7d68f
refactor(index): simplify impl, always use nt uri serialization
cmdoret Aug 26, 2024
0284072
test(rules): simplify macro, use uri.to_string()
cmdoret Aug 26, 2024
cfb1616
tests(data): uri -> <uri>
cmdoret Aug 26, 2024
08b62ee
test(index): use <uri> in cases
cmdoret Aug 26, 2024
5f7ad25
refactor(rules): use uri.to_string()
cmdoret Aug 26, 2024
4642153
test(rules): use <uri> in cases
cmdoret Aug 26, 2024
a2c3092
style: lint+format
cmdoret Aug 26, 2024
c4e2c77
docs(index): better comments
cmdoret Aug 26, 2024
f1284fd
refactor(index): return &str from TypeIndex.get
cmdoret Aug 26, 2024
c80493c
style(bench): shellcheck suggestions
cmdoret Aug 26, 2024
9ea47fb
chore(bench): add nix devshell
cmdoret Aug 26, 2024
42cbdcb
fix(bench): git clone in nix
cmdoret Aug 26, 2024
56fc66b
refactor(bench): function-based benchmark script
cmdoret Aug 26, 2024
b3545d1
docs(bench): document benchmark execution
cmdoret Aug 26, 2024
8331759
fix(bench): syntax
cmdoret Aug 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: better index function naming
  • Loading branch information
cmdoret committed Aug 21, 2024
commit 4c823fe296a2b97fd5ff3ae83e18d9210c9ccd96
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mod rules;

// Define the imports.
use crate::{
index::create_type_map,
index::create_type_index,
log::{create_logger, info},
pseudo::pseudonymize_graph,
};
Expand Down Expand Up @@ -87,7 +87,7 @@ fn main() {
match cli.command {
Subcommands::Index(args) => {
info!(log, "Args: {:?}", args);
create_type_map(&args.input, &args.output)
create_type_index(&args.input, &args.output)
}
Subcommands::Pseudo(args) => {
info!(log, "Args: {:?}", args);
Expand Down