Re: Small patch for loop macro
"Hannes Wallnoefer" <[email protected]>
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
2007/5/11, Maksim Lin for technical support mailling lists <[email protected]>: > > I guess that means in macros, its more efficient to write their result > string in with res.write or writeln instead of returning the string from > the macro function? If you just have one string to output, it doesn't make much of a difference, since the Helma Skin class will just do the res.write() for you. If, on the other hand, your macro output is composed of many small pieces, it's better to directly use res.write(), since composing a string with multiple + concatenations adds a lot of memory overhead (each + operation results in the whole string being reallocated in memory). hannes > Maks. >