Code Monkey home page Code Monkey logo

Comments (2)

lemon24 avatar lemon24 commented on July 19, 2024

OK, some timings taken with reader._plugins.timer (all times in seconds):

render reader methods
/feeds .20 .06 .01 get_feeds, .05 get_tag_keys (N calls)
/feeds?sort=unread .46 .31 .01 get_feeds, .05 get_tag_keys, .25 get_entry_counts (N calls)
/?limit=180 .26 .12 .06 get_entries, .09 get_tag (readtime plugin)
/?q=python&limit=180 .75 .59 .32 search_entries, .09 get_tag, .18 get_entries (N calls)

Some thoughts/conclusions:

  • The web app adds a constant ~.15s overhead for similar-sized pages.
  • Batch methods may help with getting the tags in the same get_feeds() / get_entries() query. Same for getting the entry in search_entries().
  • However, I'm not sure they can help with get_entry_counts() (each sub-query still has to count the same different sets of entries as the individual calls).
    • Caching may be a better idea here; but, to sort natively, we have to add either a cached counts column, or "sort by arbitrary tag / tag field" if we use tags (like we do with readtime). The latter would also open the door to efficiently sorting entries by read time.

from reader.

lemon24 avatar lemon24 commented on July 19, 2024

With dc04493 and the figures above, I'm satisfied, for now.

from reader.

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.