Skip to content

Improve memory usage #4

@dukex

Description

@dukex

I'm working on https://github.com/databr/datasus/tree/databr, and I find a way to improve memory usage:

var div = html_document.find("div[style='width:539; height:500; POSITION: absolute; TOP:198px; LEFT: 121px; overflow:auto']");
var table = html_document(div).find("table");
var links = html_document(div).find("a");

to

var div = html_document.find("div[style='width:539; height:500; POSITION: absolute; TOP:198px; LEFT: 121px; overflow:auto']");
var table = div.find("table");
var links = div.find("a");

and trs[i] .... to trs.eq(i) ...

Soon I push some changes to my branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions