Support » Plugin: Comments - wpDiscuz » Poor performance – let's fix this

  • Resolved FolioVision

    (@foliovision)


    Hello gVectors Team,

    we like your plugin but it’s too slow. We managed to improve the Ajax HTML rendering speed a lot and we have thoughts on how to make your PHP processing twice as fast.

    Is there any place where we can comit code to your repository, like Github?

    Thanks!
    Martin

    https://wordpress.org/plugins/wpdiscuz/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Woow perfect foliovision, I really like to see faster wpdiscuz.

    P.s Flowplayer is also awesome!

    Plugin Author gVectors Team

    (@gvectors-team)

    Hi FolioVision,
    Thank you very much for the help. Here is the Github repository : https://github.com/wp-plugins/wpdiscuz
    However, we’re currently working on that. wpDiscuz will be more than ten times faster on next major version.

    Hello gVectors Team,

    great that you are working on that, any idea when the new version will be available?

    Our fixes are related to the amount of SQL queries used by each comment listing. Also you function to show the date in “7 minutes ago” form is slow. And we had to improve the use of jQuery html() function.

    Hello Amir,

    thank you for your kind words!

    Martin

    Plugin Author gVectors Team

    (@gvectors-team)

    That’s great and if you have a time you can comment those on our Github repository. We’ll add those as well (if it’s good for other parts and doesn’t affects other issues).

    I don’t know if you anyone sees difference, but for me the plugin remains very slow… even on posts without any comment.

    Plugin Author gVectors Team

    (@gvectors-team)

    Hi Daelorn,

    I don’t know if you anyone sees difference, but for me the plugin remains very slow… even on posts without any comment.

    First I must say there is no doubt, that your hosting service or your WP is very bad configured. Because wpDiscuz doesn’t use any resources if you don’t have comments. All is obvious, wpDiscuz has no relation to slow loading of your posts. Also there may be a very specific conflict with other plugin. Please try wpDiscuz on vanilla WordPress and you’ll see how fast it is.
    We’re releasing 3.0.8 within next 24 hours it’s also boosted (SQL reduced)

    Just for your info:
    wpDiscuz3 must be faster. At least it spends hundreds of times less memory.

    The main advantage of wpDiscuz 3 you should know:

    For Native WP comment system and for most of all native comment plugins it doesn’t matter how many comments you’ve set to display per post, it loads all comments for that post. Because those use the same “get comments / list comments” function.
    Native WP and other native comment plugins load all comments in MySQL buffer even if you set to display one comment on front-end (paginated). So if you have 10,000 comments for one post, and you display 10 comments on first load, WP Native comment system will use the resources for 10,000 comments (mysql time and memory): http://screencast.com/t/kdXYzn63X about 0.1 sec and lots of memory.

    wpDiscuz 3 doesn’t use this logic, it doesn’t get all comments from database. It builds comment threads using very light SQL queries only for displayed comments, it becomes hundreds of time faster if you have hundreds comments for one post.

    Nobody set 1000 or even 10,000 comments at once. In most of cases it’s 50-100. So wpDiscuz will always save your server resources. But the native WP and other native comment plugins will always operate 1000 or 10,000 comments in database and in comment filter functions.

    Plugin Author gVectors Team

    (@gvectors-team)

    BTW,
    In 3.0.8 version instead of 2000 SQLs for 1000 comments it uses only 39 SQLs. This is a big performance.

    The 3.0.0 made it possible to have millions of comments per post using new logic of getting comment data.
    The 3.0.8 are going to make this logic hundreds of times lighter with just 39 SQL for unlimited number of comments.

    wpDiscuz 3.0.8 will be released within next 24 hours.

    Every version of wpdiscuz is more supercharged than previous versions, thanks to gvectors team! 😉

    Hi,

    It’s not related to my host that’s for sure.
    I’m using several plugins and it seems related to the order of activation.
    I changed the order and now it’s indeed very fast.

    I’ve been noticing these kind of issues more and more frequently on different websites. Activation sequence seems to become very important.

    Thanks for all your improvements.

    Plugin Author gVectors Team

    (@gvectors-team)

    Thank you,
    We’re very interested in those plugins. Could you please leave some list. So we could test those with wpDiscuz.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Poor performance – let's fix this’ is closed to new replies.