egui/crates
Sebastian Reinhard 433d1fc239
file_storage: Wrap `File` in `BufWriter` (#3353)
When exiting my application, it would freeze for around a minute waiting to finish writing ca. 40MB to file storage.
Some quick profiling revealed that it was spending all that time in `File::write`,
presumably making a large number of system calls writing tiny amounts of data at a time.
We can avoid this by buffering writes using a `BufWriter`, just like we already do with `BufReader`.

With this change, my application takes around 1-2 seconds to exit, with the majority of that time spent serializing `ron`.
I'm sure there are further potential performance improvements there, but this is already an order of magnitude or two better.

I also fixed the call to `log::warn!`, which was using incorrect formatting syntax and not including the error message.
2023-09-18 16:40:29 +02:00
..
ecolor Update MSRV to Rust 1.70.0 (#3310) 2023-09-06 07:59:24 +02:00
eframe file_storage: Wrap `File` in `BufWriter` (#3353) 2023-09-18 16:40:29 +02:00
egui Fix moving slider with arrow keys (#3354) 2023-09-18 13:20:45 +02:00
egui-wgpu Polish image API (#3338) 2023-09-14 16:33:10 +02:00
egui-winit Add more profiling scopes (#3332) 2023-09-13 19:32:19 +02:00
egui_demo_app Remove Function() invocation from eframe text_agent to bypass "unsafe-eval" restrictions in Chrome browser extensions. (#3349) 2023-09-17 13:25:50 +02:00
egui_demo_lib Polish image API (#3338) 2023-09-14 16:33:10 +02:00
egui_extras Polish image API (#3338) 2023-09-14 16:33:10 +02:00
egui_glium Final polish for new image loading (#3328) 2023-09-13 16:27:08 +02:00
egui_glow Polish image API (#3338) 2023-09-14 16:33:10 +02:00
egui_plot More image polish (#3343) 2023-09-15 10:57:25 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Update MSRV to Rust 1.70.0 (#3310) 2023-09-06 07:59:24 +02:00
epaint Fix problems with tabs in text (#3355) 2023-09-18 14:09:15 +02:00