Git Product home page Git Product logo

Comments (2)

sciunto avatar sciunto commented on May 18, 2024

After further investigation. email.utils functions gives similar perfomances compared to #45.
We cannot probably do better than #45.

from feedparser.

kurtmckee avatar kurtmckee commented on May 18, 2024

@sciunto thanks for the patch! Also, note that most obscure date/time formats are converted to something compatible with RFC822 and then RFC822 is called to do the actual parsing. Thus, the RFC822 parser is heavily used.

I once did a performance test and found the procedural code was significantly faster than even a pre-compiled regex-based parser, so this may be up toward the limit of what's possible currently.

I'm interested in improving feedparser's performance but want to close this bug now that #45 is merged. (And note that I intend to get rid of feedparser's URL-fetching code and just use the requests library in the future, so the _build_urllib2_request garbage will go away in the future.)

Thanks again for the patch, I really appreciate it!

from feedparser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.