Hey guys, I am building a html file using kotlinx....
# kotlinx-html
a
Hey guys, I am building a html file using kotlinx. I am doing something like this
val htmlString = buildString {
appendHTML().html {
// build html here
}
}
but the html file is getting to long for StringBuilder to handle and I am running out of java heap space. Aside from allocating more heap space to my process would another (stream based) approach work?
c
We do this:
We've never run out of heap doing so (and we do so for a while and with non trivial HTML pages)
Our framework is limited to String(Builder) so passing streams requires us to improve on our framework (and since "it works" this is not a priority atm)