no-src / gofs

A cross-platform real-time file synchronization tool out of the box based on Golang
Apache License 2.0
442 stars 35 forks source link

gofs\server\handler\file_api_handler.go 優化建議 #357

Open ckbabby opened 4 weeks ago

ckbabby commented 4 weeks ago

图片

mstmdev commented 3 weeks ago

是的,現時會遍歷目錄下的所有檔案,可以優化一下,對最大檔案數設定一個閾值,避免檔案過多的極端情况。 現時可以將need_hashneed_checkpoint都設為0來跳過該操作。 詳見File Query API