- Avoid floats as much as possible
- Use structs like
WAmount
andPrice
for calculations - Only use
WAmount.to_btc()
when inserting or computing inside a dataset. It is very expensive.
- Use structs like
- No
Arc
,Rc
,Mutex
even from third party libraries, they're slower