Improved performance of image_upload() in server.py#12991
Improved performance of image_upload() in server.py#12991V1sionVerse wants to merge 1 commit intoComfy-Org:masterfrom
Conversation
Added a cheap file size comparison before the expensive file hash comparison. This should considerably improve average-case performance.
📝 WalkthroughWalkthroughThe 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can use TruffleHog to scan for secrets in your code with verification capabilities.Add a TruffleHog config file (e.g. trufflehog-config.yml, trufflehog.yml) to your project to customize detectors and scanning behavior. The tool runs only when a config file is present. |
Added a cheap file size comparison before the expensive file hash comparison.
This should considerably improve worst-case performance.
See issue: #12965