esgst icon indicating copy to clipboard operation
esgst copied to clipboard

Bookmarking Giveaways - heavy CPU load/takes long time

Open Eiion opened this issue 5 years ago • 19 comments

Description Bookmarking a giveaway takes not only a very long time (about 9.5 seconds) but also causes heavy CPU load.

Steps to Reproduce

  1. Go to random giveaway
  2. Click on "Bookmark giveaway"
  3. See error

Expected Behavior

  1. Doesn't produce heavy CPU load
  2. is done somewhat instant (1-2 seconds)

Console Errors none

Screenshots Screenshot

System (please complete the following information):

  • ESGST Version: 8.3.17
  • Browser + Version: Chrome v75.0.3770.100

Eiion avatar Jul 07 '19 10:07 Eiion

I cannot reproduce, could be related to your storage size. Can you try loading the extension in another browser (clean data) and seeing if you can bookmark with no issues?

rafaelgomesxyz avatar Jul 17 '19 21:07 rafaelgomesxyz

I can't load it into another browser.

Eiion avatar Aug 31 '19 15:08 Eiion

Is it still happening? Does it happen for all giveaways?

rafaelgomesxyz avatar Sep 06 '19 22:09 rafaelgomesxyz

Yes, the browser freezes twice for a few seconds but CPU load only goes up to about 40+% instead of the 80+%. It happened with whatever giveaway and it still happens with no matter what giveaway.

Eiion avatar Sep 07 '19 03:09 Eiion

How big is your storage? If you want, you can share your settings with me so I can try to reproduce it, it might be a conflict with another feature.

rafaelgomesxyz avatar Sep 07 '19 03:09 rafaelgomesxyz

obsolete info Chrome cache cannot be changed via standard settings. (If I'm not mistaken it's set to 2GB-1 Byte by default.)

Eiion avatar Sep 07 '19 03:09 Eiion

I meant your ESGST storage size.

rafaelgomesxyz avatar Sep 07 '19 04:09 rafaelgomesxyz

The whole extension folder is just 2,30 MB (2.416.139 Bytes) big (unlike last time when my extension broke and just the one file was over 8MB big). computed_hashes 28KB verified_contents 3KB browser-polyfill 10KB esgst 2135KB esgst_sgtools 11KB eventPage 165KB icon 1KB manifest 2KB permissions.html 1KB permissions.js 8KB

Eiion avatar Sep 08 '19 02:09 Eiion

Well, in that case, are you able to share your settings?

rafaelgomesxyz avatar Sep 08 '19 02:09 rafaelgomesxyz

Here's the settings - it expires in a week: https://pastebin.com/W3pDauYs

Eiion avatar Sep 10 '19 16:09 Eiion

Is this still an issue? If so, are you interested in testing a method that could speed it up (you'll have to load a version of the extension manually through the developer mode)?

rafaelgomesxyz avatar Feb 28 '20 18:02 rafaelgomesxyz

I don't know, I have stopped bookmarking giveaways since then (because it was a problem).

Eiion avatar Feb 29 '20 16:02 Eiion

Well, can you try bookmarking a giveaway and seeing what happens?

rafaelgomesxyz avatar Mar 01 '20 11:03 rafaelgomesxyz

So, I just did. And it still is an issue very much:

Screenshot 4

On the graph you can see me bookmarking 4 giveaways - within 60 seconds. Making one bookmark takes about 11 seconds.

And this is un-bookmarking them again, one after another:

Screenshot 4

This is what un-bookmarking them at once looks like - clicked one after another within about 4 seconds: Screenshot 4

Eiion avatar Mar 03 '20 08:03 Eiion

When v8.8.0 arrives in the store, if you're willing to test the new option to use a temporary storage (#1596), that might fix this problem.

rafaelgomesxyz avatar Sep 03 '20 15:09 rafaelgomesxyz

Any news here?

rafaelgomesxyz avatar Oct 17 '20 15:10 rafaelgomesxyz

I'm on a new system now and while CPU load naturally went down according to the more powerful CPU, it's still only a few seconds faster (9s instead of the 11s before) as you can see in the screenshot: Screenshot

And once again, this is what un-bookmarking them at once looks like - clicked one after another within about 4 seconds: Screenshot

Eiion avatar Nov 11 '20 14:11 Eiion

This was with temporary storage enabled?

rafaelgomesxyz avatar Dec 02 '20 20:12 rafaelgomesxyz

Back then not - for neither of these tests.

If you remember from another report (https://github.com/rafaelgomesxyz/esgst/issues/1676), I have given the temporary storage feature a try and ended up having to uninstall the extension and reinstall it as it completely broke ESGST for me.

Eiion avatar Dec 03 '20 01:12 Eiion