zfile-dev / zfile-dev/zfile

前端批量请求会占用主线程导致卡顿

Open
#814 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
10.8k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

Add a description
Image ``` 1. 可以尝试在worker线程中批量获取图片数据,后端不应该直接返回图片数据。 2. java 线程读取图片缩略图后保存对应文件路径,然后将路径存储在sql中,返回给前端,前端只有在单独预览图片时才使用真正图片地址,减少带宽占用及提高性能。 3. 前端也可以做文件缓存,在indexdb中进行批量查询(需要单独做数据同步),减少api调用 ```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are identified in the issue. Start by tracing the frontend batch image requests and the backend image response path, then determine which proposed approach is accepted; done should include a measurable reduction in main-thread lag, API or bandwidth use, and working image previews.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
backend, database, frontend, performance
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.