You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why is it used almost everywhere in the code? Its size is 4 times as big as u8, and it's less ergonomic to write collections of chars than binary strings and byte arrays:
['0','-','+',];// char array: clunky*b"0-+";// octet array: terser and efficient
Then define a macro that takes a string of BT chars and maps them to an array or Vec of BT variants.
Then, in the future, instead of Vec<BT>, we could copy the code from bitvec (is the license compatible?) and adapt it to ternary, for better optimization
The text was updated successfully, but these errors were encountered:
Why is it used almost everywhere in the code? Its size is 4 times as big as
u8
, and it's less ergonomic to write collections of chars than binary strings and byte arrays:An even better approach is:
Then define a macro that takes a string of BT chars and maps them to an array or
Vec
ofBT
variants.Then, in the future, instead of
Vec<BT>
, we could copy the code frombitvec
(is the license compatible?) and adapt it to ternary, for better optimizationThe text was updated successfully, but these errors were encountered: