mirror of
https://github.com/jpochyla/psst.git
synced 2026-04-27 07:25:52 +03:00
[PR #373] [MERGED] use buffered IO when loading and saving config #502
Labels
No labels
api
bug
build
documentation
duplicate
enhancement
good first issue
help wanted
idea
invalid
linux
lowprio
macos
pull-request
upstream
windows
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/psst#502
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jpochyla/psst/pull/373
Author: @HookedBehemoth
Created: 1/28/2023
Status: ✅ Merged
Merged: 1/29/2023
Merged by: @Insprill
Base:
master← Head:perf/buf-cfg-io📝 Commits (1)
82e38f2use buffered IO when loading and saving config📊 Changes
1 file changed (+5 additions, -2 deletions)
View changed files
📝
psst-gui/src/data/config.rs(+5 -2)📄 Description
As per https://docs.rs/serde_json/latest/serde_json/fn.from_reader.html
This is also true for
to_writer_pretty.In my minimal testing, this shaved off 1000 syscalls and 15ms of the launch time. Especially reading was pretty bad as it read one byte at a time.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.