tdmShowDetails.js performance

Hi everyone,

I am new at TOAD DM, I have a database with around 1400 entities. when I generate the HTML report (Frameless) it looks great, but the performance is really slow when it rendering tables and attributes.

I was looking at tdmShowDetails, and I think it could perform better if we use Jquery instead of looping for all html tags:

function collapseAll()
{
var tags = document.getElementsByTagName('*');
for (var i = 0; i < tags.length; i++)
{
if (tags[i].className === 'item')
tags[i].className = "itemHidden";

    if (tags[i].className === 'highlighted')
        tags[i].className = "";

}

}

USING jQuery:

function collapseAll()
{
$('.item').each(function() {
$(this).attr('class', 'itemHidden');;
});

$('.highlighted').each(function() {
  $(this).attr('class', '');
});

}

My model is really big and looping for all attributes takes long time.