TGTGInsighttelegram intelligenceLIVE / telegram public index
Post content
Post content
telegramdesktop/tdesktop/dev • 61b7b2d • 1 files, +36/-24 Use rename instead of copy for log file rotation at startup Replace the expensive file copy in Logs::instanceChecked() with an atomic rename. The old code copied log_startX.txt to log.txt then deleted the original, which took ~83ms of synchronous I/O. A simple rename on the same filesystem is nearly instant (~0.3ms). #tdesktop