mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-12-05 05:50:04 +08:00
perf(backup): allocate each profile entry name once
This commit is contained in:
@@ -22,7 +22,7 @@ impl<W: Write + Seek> BackupWriter<W> {
|
||||
}
|
||||
|
||||
pub fn start_profile<'a>(&'a mut self, filename: &str) -> Result<impl Write + use<'a, W>, ArchiveError> {
|
||||
self.start_file(&format!("profiles/{filename}"))
|
||||
self.start_file(&["profiles/", filename].concat())
|
||||
}
|
||||
|
||||
pub fn start_file<'a>(&'a mut self, name: &str) -> Result<impl Write + use<'a, W>, ArchiveError> {
|
||||
|
||||
Reference in New Issue
Block a user