sharkdp / numbat

A statically typed programming language for scientific computations with first class support for physical dimensions and units
https://numbat.dev
Apache License 2.0
1.26k stars 53 forks source link

Improved completion performance #594

Closed rben01 closed 1 month ago

rben01 commented 1 month ago

Removed non-matching candidates from consideration earlier, obviating need to filter them out Removed clones of candidates that didn't match (before: clone then check; after: check then clone)

Also removed pointless unnecessary work in print_environment (code that was replaced but then not deleted; kinda surprised clippy doesn't warn about pointless sort on a vector that'll never actually be used).