Commit Graph

22 Commits

Author SHA1 Message Date
RunasSudo 6bb127a124
Precompute Ballot::has_equal_rankings at parse time
Before: 5.3943 +- 0.0287
After: 5.27661 +- 0.00472
2022-08-25 21:49:50 +10:00
RunasSudo 422a198cf5
Use NoHashHasher for Candidate HashMaps to improve performance 2022-08-20 23:25:16 +10:00
RunasSudo 2bce8cfc3f
Avoid String allocations in BLT parser 2022-08-19 00:16:29 +10:00
RunasSudo 03af86733e
Initial implementation of --constraint-mode repeat_count 2022-04-20 19:42:20 +10:00
RunasSudo 15614a4e8f
rust-clippy linting 2021-10-28 00:30:55 +11:00
RunasSudo 0c97755813
Add CSP parsing tests 2021-10-26 00:55:42 +11:00
RunasSudo e78d06289a
Return Result from CSP parse_reader, better error messages 2021-10-17 17:18:14 +11:00
RunasSudo 71dc671c34
Build CSV parser for WebAssembly 2021-10-17 16:34:15 +11:00
RunasSudo 3ceaf67091
Implement stricter validation modes for CSP input 2021-09-30 00:48:57 +10:00
RunasSudo 2475b42056
Calculate loss by fraction introduced by minivoters with equal rankings 2021-09-05 00:07:59 +10:00
RunasSudo a24ac3658a
Implement support for equal rankings 2021-09-04 02:30:01 +10:00
RunasSudo b0f869bf02
Initial framework for equal rankings 2021-09-04 01:56:04 +10:00
RunasSudo 27ead09960
Complete BLT writer and implement tests for file conversions 2021-09-02 22:35:10 +10:00
RunasSudo e9e1c63c9c
Implement serialised binary format 2021-09-02 17:17:45 +10:00
RunasSudo 61e4eefca3
convert: Allow --seats to override input file 2021-08-21 01:19:54 +10:00
RunasSudo 88ab06d633
Add subcommand for BLT/CSP file conversion 2021-08-20 02:29:47 +10:00
RunasSudo b58922c57b
WIP: no immediate election? 2021-08-07 22:34:55 +10:00
RunasSudo 83d0a9bb80
Better error messages 2021-07-31 15:24:23 +10:00
RunasSudo bfeec6f839
Give information on BLT syntax errors 2021-07-29 17:34:34 +10:00
RunasSudo 3801d30527
Switch to handwritten BLT parser 2021-07-29 03:24:51 +10:00
RunasSudo efbcfd7f6c
Simply BLT grammar specification 2021-07-23 17:07:03 +10:00
RunasSudo cca097f943
Use Pest-based parser for BLT files
Support comments, optional newlines, etc.
2021-07-23 16:45:54 +10:00