perf: 降低 JSON 输出精度 15→8 位 + 添加 I/O 阶段提示
- C/C++/Fortran 引擎:%.15g/setprecision(15)/g0 → %.8g/g0.8 - 添加 "正在写入轨迹数据…" 提示,说明 100% 后的等待原因 - trajectory.txt 文件从 419MB → 407MB(仍有优化空间)
This commit is contained in:
@@ -695,7 +695,8 @@ static void write_trajectory_json(
|
||||
{
|
||||
std::ofstream f(path);
|
||||
if (!f) die("无法写入 " + path);
|
||||
f << std::setprecision(15);
|
||||
std::cout << "[Cpp-engine] 正在写入轨迹数据…" << std::endl;
|
||||
f << std::setprecision(8);
|
||||
|
||||
f << "{\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user