Commit graph

63 commits

Author SHA1 Message Date
Vladimir Bauer 1078e77688 trim_end: no need for mut record parameter 2024-01-26 09:41:19 +01:00
Pasi Saarinen 1d3c47eafb Rename release file 2022-12-10 16:20:29 +01:00
Pasi Saarinen 6cbf72c7ec Attempt at auto-building release 2022-12-10 16:20:29 +01:00
Orhun Parmaksız e34b11a9e7 Update Cargo.lock 2022-07-12 12:29:54 +02:00
Karolin Varner 1e4d1f23bb chore: Release version 2022-04-20 15:01:29 +02:00
Karolin Varner 4a3ca0ddf2 remove xxhash subdmodule 2022-04-20 14:51:30 +02:00
Alexandru Macovei 1a598ded5b Display colored help, don't handle help as an error 2022-04-20 14:38:40 +02:00
Alexandru Macovei b305f7aa4e Apply clippy lints and fmt 2022-04-20 14:38:40 +02:00
Alexandru Macovei a490f218e3 Upgrade clap to 3.1 and other dependencies 2022-04-20 14:38:40 +02:00
Karolin Varner 366914775c
Modify the example huniq -c output to make clear it's not sorted 2021-10-23 10:00:51 +02:00
Karolin Varner bc5c0caa7f
Elaboration on sort|uniq 2021-10-23 09:59:01 +02:00
Karolin Varner 5d6f22bdbb Release 2020-10-30 11:25:28 +01:00
Alexandru Macovei cfa51e8590 performance: mem::forget HashMap objects when about to exit 2020-10-30 11:04:42 +02:00
Alexandru Macovei 809055baa0 enable fat lto for release builds 2020-10-30 11:03:58 +02:00
Alexandru Macovei 132b599b80 benchmark: use bash explicitly, since sh is not always bash on all systems 2020-10-30 10:45:07 +02:00
Alexandru Macovei 447d3b2a2e update Cargo.lock version to Cargo.toml version 2020-10-30 10:29:30 +02:00
Alexandru Macovei e7d2fbe0f3 use BuildHasherDefault from std::hash, instead of manual implementation 2020-10-30 10:28:34 +02:00
Karolin Varner 8627d470f1 Bump version 2020-10-27 14:27:48 +01:00
Karolin Varner f216819ff0 Upgrade everything 2020-10-27 14:27:27 +01:00
Thomas Hurst 1df684e3cc Replace use of write with write_all
write can succeed without writing the entire buffer.
2020-10-27 14:25:47 +01:00
Thomas Hurst 1c6d4880e7 Use bstr::for_byte_record for reading
This replaces the custom split_read_zerocopy with bstr's own
minimally-copying record reader, which simplifies the code somewhat
without sacrificing performance in any of my measurements (98% - 115%
observed performance against baseline)

This also removes the sysconf dependency, which caused a compile error
here on FreeBSD.

This also adds a --no-trailing-delimiter flag requested in #14, since
this code needed to be moved anyway.
2020-10-27 14:25:41 +01:00
Karolin Varner ee7136d6e2 Update cargo.lock 2020-08-19 09:51:59 +02:00
Karolin Varner 08ebeaac45 chore: Bump version no 2020-08-19 09:49:20 +02:00
Karolin Varner e5902db9fd chore: Upgrade deps 2020-08-19 09:48:24 +02:00
Karolin Varner 207ecb23c2 feat: Use ahash
It's slower, but it's also in rust…

Fixes: #15
2020-08-19 09:48:24 +02:00
Alexandru Macovei a6fb614a92 Add tests for counting and sorting using assert_cmd 2020-08-19 09:23:55 +02:00
Alexandru Macovei 8df0a54925 Fix displayed help version to always track the version in Cargo.toml 2020-08-19 09:23:55 +02:00
Alexandru Macovei 0972245701 Implement -s,--sort and -S,--sort-descending for output ordering 2020-08-19 09:23:55 +02:00
Karolin Varner 012ddbd014 update xxhash 2020-05-13 18:10:30 +02:00
Karolin Varner f3c1eb0eda Fix secret…
Should be 32 byte, not too…thanks rust array syntax /o\
2020-05-13 18:02:20 +02:00
louy2 94c40cf9a5 Bump to v2.2 in Cargo.lock 2020-03-29 23:53:20 +02:00
Karolin Varner cae4c5e435 Bump to v2.2 2020-03-04 21:58:30 +01:00
louy2 8cb0d2c527 Use rustfmt 2020-03-04 21:50:26 +01:00
Yufan Lou c51e62c86b Remove extra BufReader, BufWriter, type fish 2020-03-04 21:42:00 +01:00
dippi a24620ea59 Search delimiter with memchr 2020-03-04 21:26:56 +01:00
Karolin Varner 03dcccdd7e
Merge pull request #4 from JOE1994/smol-fix
Make buffer initialization slightly more concise
2020-02-29 10:07:34 +01:00
JOE1994 ba5c29287a add explanation 2020-02-28 18:59:50 -05:00
JOE1994 e503725d88 make buffer initialization more concise 2020-02-28 18:50:10 -05:00
Karolin Varner 323b02f5ba Use anyhow in build.rs 2020-01-19 22:09:47 +01:00
Karolin Varner b5a9d12049 Test nawk and gawk 2020-01-19 22:09:33 +01:00
Karolin Varner bfe345d076 update deps 2020-01-19 21:41:30 +01:00
Karolin Varner 78a068002b Release 2.1.0 2020-01-19 21:27:10 +01:00
Karolin Varner 345ec26915 optimization: use xxh3 2020-01-19 15:14:20 +01:00
Karolin Varner fd6323c1de optimization: Cache fxhash instance after seeding instead of reseeding every time 2020-01-19 13:46:18 +01:00
Karolin Varner c2658a998e optimization: Use fxhash again but seed with random data 2020-01-19 13:36:29 +01:00
Karolin Varner 8eaafd7617 Clean up all the code
Use ahash again for collision attack resistance.
2020-01-19 13:04:24 +01:00
Karolin Varner 8eed0d8ab6 optimization: Use a input stream splitter that doesn't copy in uniq 2020-01-19 09:32:10 +01:00
Karolin Varner a73cde6bca optimization: use fxhash 2020-01-18 23:48:57 +01:00
Karolin Varner f48780f016 optimization: use ahash in uniq 2020-01-18 23:40:34 +01:00
Karolin Varner 116038627a optimization: Do not hash the data twice in uniq 2020-01-18 23:19:48 +01:00