Commit graph

379 commits

Author SHA1 Message Date
Josh Hansen
b63b943ada Port del to table_info 2023-09-12 16:16:26 -07:00
Josh Hansen
6dee0be60a Begin moving to unified table info 2023-09-12 16:03:48 -07:00
Josh Hansen
15bdb427a4 Presumably simplify containing_indices (untested) 2023-09-11 22:55:31 -07:00
Josh Hansen
b4827e287e More assertions 2023-09-11 22:55:11 -07:00
Josh Hansen
ba5b799287 Be stricter checking that indices are set properly after init and idx (failing) 2023-09-11 22:54:14 -07:00
Josh Hansen
08d150fc48 Attempted simplification of walk methods; tests failing 2023-09-11 17:47:32 -07:00
Josh Hansen
17c5b22eb9 rm: Don't ignore directories 2023-09-11 15:03:38 -07:00
Josh Hansen
babbf0123a rm --force to ignore non-existing xattrs 2023-09-11 15:02:41 -07:00
Josh Hansen
10e09898d3 Work 2023-09-11 14:28:33 -07:00
Josh Hansen
e7fc22bf47 Split walk into walk_paths and walk_records 2023-09-10 14:47:56 -07:00
Josh Hansen
3b2754932a Clean up doc comment 2023-09-08 17:45:01 -07:00
Josh Hansen
b9ef10bf6e Work toward recursive set and rm; failing tests 2023-09-07 18:15:27 -07:00
Josh Hansen
6e5f4345d4 Roadmap update 2023-09-07 10:20:04 -07:00
Josh Hansen
a7dc0bb873 Add full get (also unsorted) and create (also with insertion) 2023-09-07 08:45:05 -07:00
Josh Hansen
a1e808087f Fix error on get -a 2023-09-07 08:21:19 -07:00
Josh Hansen
ffabba654b Sort get directory contents by default, allowing opt-out with --nosort 2023-09-07 08:20:58 -07:00
Josh Hansen
7f87bbe9ce A failing test of get after create 2023-09-05 23:54:33 -07:00
Josh Hansen
255bf7b5fe More specific key errors 2023-09-05 23:54:24 -07:00
Josh Hansen
6297d3e292 create and init also call ins if not a tty 2023-09-05 23:54:10 -07:00
Josh Hansen
ce104a5435 Propagate errors in get's walk callback 2023-09-05 23:52:41 -07:00
Josh Hansen
9e70b81858 Add create 2023-09-05 22:24:36 -07:00
Josh Hansen
4c16198510 Doc comments for cp and mv 2023-09-05 21:44:59 -07:00
Josh Hansen
c18c8f5d5d ls returns anhow::Result 2023-09-05 21:41:53 -07:00
Josh Hansen
9bcf8019b7 idx returns anyhow::Result 2023-09-05 21:27:30 -07:00
Josh Hansen
396e494839 rm returns anyhow::Result 2023-09-05 20:57:14 -07:00
Josh Hansen
17a1c7c829 Have cp and mv return anyhow::Results 2023-09-05 20:42:14 -07:00
Josh Hansen
11cd7c4af2 set returns Result 2023-09-05 20:12:20 -07:00
Josh Hansen
3c0e7cd516 Document all command functions 2023-09-05 20:07:13 -07:00
Josh Hansen
febc9b9de7 Expose distinct cp and mv; hide cp_or_mv from public interface 2023-09-05 19:57:19 -07:00
Josh Hansen
a84f06ff29 A Ghee benchmark, currently just a copy of the Sqlite benchmark 2023-09-05 19:43:25 -07:00
Josh Hansen
e2229f37fe Get db_bench_sqlite3 to build and run
SQLite:     version 3.37.2
Date:       Tue Sep  5 18:14:33 2023
CPU:        8 * Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
CPUCache:   8192 KB
Keys:       16 bytes each
Values:     100 bytes each
Entries:    1000000
RawSize:    110.6 MB (estimated)
------------------------------------------------
fillseqsync  :    1008.999 micros/op;    0.1 MB/s
168     /tmp/leveldbtest-1000/dbbench_sqlite3-1.db
8756    /tmp/leveldbtest-1000/dbbench_sqlite3-1.db-wal
fillrandsync :    1006.494 micros/op;    0.1 MB/s
164     /tmp/leveldbtest-1000/dbbench_sqlite3-2.db
8856    /tmp/leveldbtest-1000/dbbench_sqlite3-2.db-wal
fillseq      :       7.157 micros/op;   15.5 MB/s
153288  /tmp/leveldbtest-1000/dbbench_sqlite3-3.db
16508   /tmp/leveldbtest-1000/dbbench_sqlite3-3.db-wal
fillseqbatch :       1.452 micros/op;   76.2 MB/s
153288  /tmp/leveldbtest-1000/dbbench_sqlite3-4.db
16628   /tmp/leveldbtest-1000/dbbench_sqlite3-4.db-wal
fillrandom   :      10.571 micros/op;   10.5 MB/s
152392  /tmp/leveldbtest-1000/dbbench_sqlite3-5.db
16508   /tmp/leveldbtest-1000/dbbench_sqlite3-5.db-wal
fillrandbatch :       6.290 micros/op;   17.6 MB/s
152416  /tmp/leveldbtest-1000/dbbench_sqlite3-6.db
20672   /tmp/leveldbtest-1000/dbbench_sqlite3-6.db-wal
overwrite    :      19.451 micros/op;    5.7 MB/s
212664  /tmp/leveldbtest-1000/dbbench_sqlite3-6.db
20672   /tmp/leveldbtest-1000/dbbench_sqlite3-6.db-wal
readrandom   :       4.547 micros/op;
readseq      :       1.917 micros/op;   49.7 MB/s
readreverse  :       1.884 micros/op;   50.6 MB/s
2023-09-05 18:16:15 -07:00
Josh Hansen
3ce266e4c1 Symas benchmark code, BSD-licensed 2023-09-05 17:44:11 -07:00
Josh Hansen
c568bf8a17 Add multi-index optimization to roadmap 2023-09-05 17:43:46 -07:00
Josh Hansen
bae5e3f996 Roadmap work 2023-08-30 18:36:28 -07:00
Josh Hansen
51be5c9606 Dedupe roadmap and history 2023-08-30 17:23:05 -07:00
Josh Hansen
f527aa22d5 Reorganize readme slightly 2023-08-30 17:17:46 -07:00
Josh Hansen
6334d6f628 Ghee 0.4.0 2023-08-30 17:15:34 -07:00
Josh Hansen
b086afe5d8 cargo update 2023-08-30 17:13:47 -07:00
Josh Hansen
68ff630f72 Update roadmap 2023-08-30 17:12:12 -07:00
Josh Hansen
8752cd3ffb Update readme 2023-08-30 17:12:07 -07:00
Josh Hansen
d175733379 Resume output of original table paths 2023-08-30 17:11:53 -07:00
Josh Hansen
0f605d1fe8 Accelerated get that doesn't traverse sub-indices; roadmap update 2023-08-30 16:17:10 -07:00
Josh Hansen
f4403379bb Drop PathKind et al 2023-08-29 14:25:55 -07:00
Josh Hansen
049e288d3f Test recursiveness a bit 2023-08-29 14:21:30 -07:00
Josh Hansen
3285042c73 Partially test omission of user.ghee when !all 2023-08-29 14:08:44 -07:00
Josh Hansen
e73afb76b0 Never recurse into nested indices; -a --all means show user.ghee; omit records with no xattrs 2023-08-29 14:06:05 -07:00
Josh Hansen
a0a327e8ff Overpower walk and PathVisit; pass a basic test 2023-08-28 23:33:15 -07:00
Josh Hansen
ba7bbd0467 example.sh work 2023-08-28 14:39:27 -07:00
Josh Hansen
6ed8c8d99b README work 2023-08-28 14:39:04 -07:00
Josh Hansen
39180fe6b6 Generalize walk_records to allow non-initialized directories and bare files 2023-08-25 11:24:25 -07:00