Tabs in DITA <pre> tag cause slow rendering in Author View
Posted: Tue Feb 10, 2015 2:50 am
Hi, I just noticed a performance issue today. We have a long DITA topic with a <pre> tag of about 1,500 lines and had about 3,000 indent tab characters in it. When opining the file in oXygen (Author View) it was taking about 100 seconds to load and open. After replacing all the tabs with spaces the file loads in less than 2 seconds.
It's not a big deal since its just one file, just thought I would post about it and was kinda wondering why a character would cause such a performance change. The files is actually bigger with 4 spaces instead of tabs.
I didn't test to see if the growth rate was liner or not but I wonder how much it affects smaller amounts of tabs in other files and tags as well. It may not be as noticeable if there are say 200 tabs in a file, but it may be something you might look into.
PS: what happened to the add attachment and insert image on the forum?
It's not a big deal since its just one file, just thought I would post about it and was kinda wondering why a character would cause such a performance change. The files is actually bigger with 4 spaces instead of tabs.
I didn't test to see if the growth rate was liner or not but I wonder how much it affects smaller amounts of tabs in other files and tags as well. It may not be as noticeable if there are say 200 tabs in a file, but it may be something you might look into.
PS: what happened to the add attachment and insert image on the forum?