I think this would be much easier to hack into the high_perf branch, since we've dropped the idea of STDIN/STDOUT there.
Easier, yes; better, maybe not. I'd like to see the high_perf branch get merged sooner rather than later to the trunk. If making that easier would be to eliminate STDIN/STDOUT from the trunk, then that is the way to go. If it doesn't really help, then, sure do the TLS on the high_perf branch (since it should be largely orthogonal to any other changes on the trunk and hence won't conflict).
If the high_perf branch isn't going to get integrated any time soon, then I'd rather see the TLS code target the trunk (which will get it much more testing).
Maybe next week, I'll have a go at playing with the high_perf branch myself (and see what's changed)...
John
