toyboot4e / ac-library-hs

[WIP] Haskell port of ac-library.
Creative Commons Zero v1.0 Universal
4 stars 0 forks source link

What size is the overhead of verbose error message? #15

Closed toyboot4e closed 1 week ago

toyboot4e commented 1 month ago

For example,

let !_ = runtimeAssert (0 <= p0 && p0 < nFT) $ "add: vertex out of bounds"

versus

let !_ = runtimeAssert (0 <= p0 && p0 < nFT) $ "add: vertex out of bounds (" ++ show p0 ++ ")"

The latter has better error message, but could be slightly slower? Measure!

toyboot4e commented 3 weeks ago

Also use a common boundary check function.

toyboot4e commented 1 week ago

Maybe not much. Closing.