options variables: features vs. overhead (curiosity)

René J.V. Bertin rjvbertin at gmail.com
Sun Jan 8 11:06:15 CET 2017


Hi,

Out of pure curiosity: what's the overhead incurred by using options variables as simple boolean state variables that are probably set only once but possibly read many times, compared to native Tcl variables?

I'm thinking in terms of cumulative effect on iterative or recursive operations like portindex and dependency calculations. 

Same thing with `[tbool foo]` instead of `[info exists foo] && ${foo}`: is there a significant overhead in Tcl in moving (frequent) operations to a procedure?

Thanks,
R.


More information about the macports-dev mailing list