Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search (fusejs) has become very slow #646

Closed
Natenom opened this issue Aug 7, 2022 · 6 comments · Fixed by #648
Closed

Search (fusejs) has become very slow #646

Natenom opened this issue Aug 7, 2022 · 6 comments · Fixed by #648
Labels
enhancement New feature or request

Comments

@Natenom
Copy link
Contributor

Natenom commented Aug 7, 2022

Describe the bug
The new search is very slow.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://blog.natenom.com/search/?q=wochen
  • Takes ~1 second for 125 results.
  • This is an old version of your theme.

With the current theme version it takes ~24 seconds of full cpu usage for the same 125 search results in Chromium. In Firefox much worse.

Expected behavior
1 second, not 24. :)

Hugo version:
hugo v0.101.0+extended linux/amd64 BuildDate=unknown VendorInfo=debian:0.101.0-1

Theme version:
100533a (HEAD -> master, origin/master, origin/HEAD) style(search): display result score

@razonyang
Copy link
Owner

Could you share your repo for me to test the performance issue?
I can also emulate the issue with fake posts if it's inconvenient.
BTW, how many posts of your site?

@Natenom
Copy link
Contributor Author

Natenom commented Aug 7, 2022

I did send you part of my repo some time ago, all from 2020 to 2022. Do you still have it? I am on a very slow connection with 1 MBit upload only, it would take very long time to upload 1,6 GB for my current repo.

There are currently ~2600 blog posts on my blog.

(I am planing to push my complete blog repo to github in the future. Have to do some work though. Once it is online you can use it for testing :)).

@Natenom
Copy link
Contributor Author

Natenom commented Aug 7, 2022

And this is the theme version on the live blog:

26b65d1 (HEAD, origin/master, origin/HEAD) style: fix the social links of top app bar

@Natenom
Copy link
Contributor Author

Natenom commented Aug 7, 2022

I could send you the generated index.json (4,6 MiB) if it could help. Preferred via E-Mail.

@razonyang
Copy link
Owner

@Natenom Yep, send me the index.json as well via email.

@razonyang
Copy link
Owner

I found the email that you sent me before, but the archive.zip is not long exist on your server, I couldn't download it. I didn't have the copy on local cuz I reinstalled my OS a few months ago.

@razonyang razonyang added the enhancement New feature or request label Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants