Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve memory usage #4

Open
dukex opened this issue Sep 29, 2014 · 0 comments
Open

Improve memory usage #4

dukex opened this issue Sep 29, 2014 · 0 comments

Comments

@dukex
Copy link
Contributor

dukex commented Sep 29, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant