LoRAdo icon indicating copy to clipboard operation
LoRAdo copied to clipboard

[BUG]: Many items cause slow rendering

Open pixelass opened this issue 2 years ago • 2 comments

Describe the bug

When I upload more that 10 images, the caption editing is noticably slower. At 20 images it is extremely laggy

Expected behavior

editing captions should be fast/immediate

Screenshots

Versions (please complete the following information):

  • Browser: [Chrome 115.0.5790.171]
  • Node.js: [v18.17.1]
  • OS: [windows 11]
  • LoRAdo [e.g. 0.1.0-alpha-3]

Additional context

as reported in #3

pixelass avatar Aug 17 '23 01:08 pixelass

we could look into this library, but sadly there doesn't seem to be any documentation: https://tanstack.com/virtual/v3/docs/examples/react/variable

There are some examples but it is unclear if this library can handle items with images. They have a masonry example but it is very simple and the sizeEstimation seems to be something that must be done manually (something we would have to think about)

pixelass avatar Aug 17 '23 18:08 pixelass

Some improvements were made in the lastes release v0.1.0-alpha.4. It's not perfect but a lot faster than before.

pixelass avatar Aug 17 '23 21:08 pixelass