Avatar for the reflex-dev user
reflex-dev
reflex
BlogDocsChangelog

Performance History

Latest Results

update tailwind v3
0829dev
5 hours ago
0829dev
0829dev
6 hours ago
fix: dynamically report backend_host in terminal logs #6165
pranavmanglik:fix-backend-host-hardcoding-in-logs
13 hours ago
fix: avoid eagerly copying uploaded files into memory (#6174) * fix: avoid eagerly copying uploaded files into memory Previously the upload handler read every file into a BytesIO buffer before passing it to the event handler, doubling peak memory for large uploads. Now the original Starlette temp files are passed through directly and form_data.close() is deferred until the streaming response completes. - Pass file.file directly instead of copying into BytesIO - Defer form_data.close() to finally block in streaming generator - Close form_data on error path to prevent resource leaks - Replace mock form data in tests with real Starlette FormData - Add test verifying files are not read before handler runs * test: improve upload tests with streaming assertions and deduplication - Extract _FileUploadMixin to eliminate duplicated fields and methods across FileUploadState, ChildFileUploadState, and GrandChildFileUploadState - Fix shared BytesIO bug where both UploadFile instances shared one buffer, causing the second file to write empty content - Use app.modify_state to set _tmp_path on the state instance instead of setting class attributes directly - Assert incremental delta updates during streaming (yield per file) - Verify both BinaryIO handles remain open during streaming and close after form_data.close() - Verify uploaded files are written to tmp dir with correct content - Remove dead state._tmp_path assignments from error-case tests * fix: prevent temp file leaks on upload cancellation Replace `except Exception` with `try/finally` + `event is None` guard so that `asyncio.CancelledError` (a BaseException) also triggers form_data cleanup. Add idempotent `_close_form_data()` helper to safely deduplicate cleanup across three paths: event creation failure, generator completion, and ASGI response teardown. Introduce `_UploadStreamingResponse` (module-level) that wraps `__call__` in try/finally as a safety net for the case where the response is cancelled before the generator is ever entered. Add tests verifying form_data.close() is called on: - CancelledError during event creation (get_state cancelled) - CancelledError during ASGI send (before generator iteration) * refactor: remove redundant try/finally in upload generator * test: use full ASGI lifecycle in upload form close test
main
13 hours ago
test: use full ASGI lifecycle in upload form close test
FarhanAliRaza:memory-issue
13 hours ago
cache this
benedikt-bartscher:ssr
2 days ago

Active Branches

0829dev#6182
last run
5 hours ago
CodSpeed Performance Gauge
0%
CodSpeed Performance Gauge
0%
CodSpeed Performance Gauge
0%
© 2026 CodSpeed Technology
Home Terms Privacy Docs