If a folder contains 50 thousand images, is the speed of opening significantly affected? Solution
Source: Internet
Author: User
If a folder contains 50 thousand images, is the speed of opening significantly affected? I was trying to store images by category, but couldn't I solve this problem? would it have a big impact on the display speed if I concentrated so many images in a folder ?, If you use a program to call an image to display it on a webpage, the key factor affecting the display speed is the disk I/O recommended classification. I am used to automatically create folders by year and month, generally, the number of images under each folder should not exceed 1 k. for example, if a folder contains 50 thousand images, will the speed of opening be greatly affected?
I was trying to store images by category, but couldn't I solve this problem? would it have a big impact on the display speed if I concentrated so many images in a folder?
------ Solution --------------------
If an image is displayed on a webpage by calling a program, the key factor affecting the display speed is the disk I/O.
Better classification
I am used to automatically create folders by year and month. Generally, the number of images under each folder should not exceed 1 k.
------ Solution --------------------
If the size of each image is large, the io overhead will increase first. to display the image on a webpage, it will be slow to display the image too large, it may not even be loaded! We suggest you store them by category! If your website is used, you can use a separate server to store images that will be added later!
------ Solution --------------------
50 thousand influential sheets
------ Solution --------------------
If you use a program to open a file with the specified name or access the specified file through apache, it should be fine.
If you use file management tools such as WinSCP to browse this folder, it will die.
In short, direct access to files is not a problem, and the list of files involved is terrible.
------ Solution --------------------
200 sheets and 500 sheets will be able to feel the difference, not to mention 50 thousand sheets
------ Solution --------------------
5 million sheets?
Copy 5000 copies of a 10 K graph to open the test.
------ Solution --------------------
What do you mean by opening it? Browsing is slow. It is recommended to split folders. If the web reading shows that the access is not very frequent, you can. Go to the server if you have money
------ Solution --------------------
Slow to feel like it is about to crash
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.