farhadab / sec-edgar-financials

Extract financial data from the SEC's EDGAR database
MIT License
138 stars 41 forks source link

Optimization for sgml.py #7

Open bajajahsaas opened 4 years ago

bajajahsaas commented 4 years ago

In the _parse_sgml(), you mention there were no optimized methods for this parsing. While using this code, I found out the parsing to really slow. Do you think there are better ways to do it now?

farhadab commented 4 years ago

Hi @bajajahsaas , i can't see where in that method I say there's no optimized solution though I do see i wrote there was no existing library i liked. So no, it's not something I've looked into further but please provide an example to help illustrate the slowness you're experiencing for your use case.