> Keep in mind you can also turn getVal and getMutableVal into templates 
> instead of procs to get rid of runtime overhead. Templates don't need type 
> information, they transform AST into other AST during compile time (from my 
> knowledge at least).

Yes templates always inline at the Nim level. But if a proc is enough and you 
don't want the function call overhead, just add the {.inline.} pragma and keep 
your templates in reserve for things that require them.

I've done an in-depth review of the C code and Assembly produced of [inline 
procs vs templates](https://github.com/status-im/mpint/issues/3). C code is 
different, assembly is the same.

Reply via email to