On 12.12.2006, at 17:59, Vlad Seryakov wrote:
at least it requires special tuning or producing specific Tcl code
to be
as fast as others
That is, if you keep all your vital Tcl processing encapsulated
in procedures and use Tcl sparsely in the adp page, you are OK.
Isn't this also going to have a side-effect of a better-maintainable
and better-organized application?
Interestingly, we never use adp for page layout. Instead, we have
written an interface to tdom so we use stuff like:
html {
table {
for {set i 0} {$i < 10} {incr i} {
tr {
td {
....
}
td {
...
}
}
}
}
}
to write dynamic html. So all our pages are actually Tcl
code that produces a DOM tree and gets serialized to HTML
by the tdom engine on per-request basis. This way all of
our code is pre-compiled per-se.
I made that work public some years ago (was it 6 years already?)
and we are basing our application on that, but I never had time
to maintain it as public package... Perhaps I should...
Cheers
Zoran