-
Notifications
You must be signed in to change notification settings - Fork 65
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
Rewrite this one in C(++) or reduce functionality #1
Comments
Rewrite what? Are you able to provide some bench marks? If you just want a fast parser, use htmlparser. |
Yes, I am still using htmlparser for parsing and it's pretty fast. I have tried to get elements with sizzle selectors. Doing it manually with the rudimentary DOM support of htmlparser is many times faster. I will provide you some benchmarks in some days. |
I'm having some performance troubles as well. Consider the following code: https://gist.github.com/97db243b2ba3a3f9f458
Pretty much all of those 15 seconds are spend on executing the --fg |
Interesting, thanks, ill dig in. |
Thanks for the quick reply. I was thinking of creating a small node app that lists all existing node.js modules by scraping various sources and lets you sorts things by github forks or google backlinks. |
Making it dirty like this http://github.com/tautologistics/node-htmlparser/blob/master/utils_example.js is so much faster! I have rewritten a piece of code from PHP to node and Apricot is really slow compared to that for big and many HTML files.
The text was updated successfully, but these errors were encountered: