ref: 3cdb85952401e2284ecd285742174b8f774bf18b
parent: 8fffc0be8c026118884aa4685246c797927f38b9
author: Ori Bernstein <ori@markovcorp.com>
date: Tue Jun 13 05:59:28 EDT 2017
Vastart isn't free. It's cheap. In a tight loop, it makes a measurable difference.
--- a/lib/std/assert.myr
+++ b/lib/std/assert.myr
@@ -9,8 +9,8 @@
const assert = {cond, msg, args
var ap
- ap = vastart(&args)
if !cond
+ ap = vastart(&args)
std.fputv(2, msg, &ap)
suicide()
;;