![]() ![]() |
chris,
August 15, 2002 at 7:47:38 PM CEST
macros why do macros in antville directly write to the response buffer with res.write(...)? performance? (probably this is a dumb question. it would be nice to get an answer anyway ;-)
robert,
August 16, 2002 at 2:16:47 PM CEST
that's no dumb question: imo it doesn't make much sense to declare a string-variable at the beginning of a macro, populate it and then - at the end of the macro - return it to the calling skin (and most antville-macros do their stuff directly without calling other functions). i don't think you would see a performance-degrade if you use string-variables and return them to the calling skin.
chris,
August 16, 2002 at 10:06:39 PM CEST
but that makes .renderSkinAsString quite useless, doesn't it?
robert,
August 18, 2002 at 11:56:55 AM CEST
no, it doesn't. using .renderSkinAsString() means that everything that would normally be rendered to response is "redirected" into a string(buffer?variable?) - i can't tell you exactly how hannes implemented this in helma, i just know the results ;-) so you can have both: if your macros use res.write and you render a skin with renderSkin(), they will write directly to response. if you use renderSkinAsString(), they won't. (have a look at the .hac-files in antville, there you'll find mostly renderSkinAsString(), just at the end the main page.skin is rendered using renderSkin()) ... comment
|
![]() |
The Antville Server Fund has been a great success. Thanks to everybody who contributed!
online for 8645 Days
last updated: 1/4/11, 10:22 AM ![]() ![]() ![]() Youre not logged in ... Login
![]() ![]() ![]() ... home
... topics ... galleries ... Home
... Tags
... Galleries
... about antville ... download ... macros.antville.org ... help.antville.org ... translate antville! ... antville home ![]()
![]() ![]() ![]()
i understand your concerns however,
i hardly can think of a solution. certainly, if the...
by tobi (7/29/03, 9:47 AM)
Found several more similar sites
listed This is getting to be quite a concern to...
by cobalt123 (7/27/03, 7:56 PM)
Second Post Alert on Referrer
bug livecatz I put this into "help" and now here:...
by cobalt123 (7/26/03, 7:14 PM)
well it's not easy to
find from here, anyway. think we should include a link,...
by tobi (7/24/03, 11:25 AM)
clock not that it's particularly
earthshattering but the antclock is running slow by about 15...
by kohlehydrat (7/23/03, 8:25 PM)
How to log skin names
I accessed to console?? Hi, I would like to know...
by winson (7/23/03, 4:12 PM)
![]() |