Version 23.1 新增功能
2024年1月24日
一般新增功能
- 新版本顯著提高了編輯超大檔案(包括 CSV)時眾多命令的速度,同時還減少了記憶體不足導致的崩潰的問題。[PF]
- 新的 Shell 對象的 KeepRunning 屬性讓您能在巨集中用 async 功能,例如 fetch。這個 fetch 能用來調用許多服務(例如生成式人工智能)提供的 API。[P]
- 添加了完成清單功能。[P]
- 將 CSS 和 JSON 的 LSP 服務器更新到 1.85.1,將 typescript-language-server 更新到 v4.2.0。[P]
- 市集應用版現在接受在 Microsoft 市集之外購買的桌面版本的註冊金鑰。[P]
測試結果:
| v23.0 | v23.1 | 比較 | |
|---|---|---|---|
| 打開檔案 [*A] | 0.276 秒 | 0.107 秒 | 快 2.58 倍 |
| 取代全部 [*B] | 0.351 秒 | 0.125 秒 | 快 2.81 倍 |
| 剪下並貼上 [*C] | 287 秒 | 127 秒 | 快 2.26 倍 |
| 大小寫轉換 [*D] | 524 秒 | 177 秒 | 快 2.96 倍 |
| 轉換 CSV 格式 [*E] | 1310 秒 | 533 秒 | 快 2.46 倍 |
| 自動填滿 [*F] | 1290 秒 | 31.3 秒 | 快 41.2 倍 |
| 合併行 [*G] | 566 秒 | 256 秒 | 快 2.21 倍 |
| 插入欄 [*H] | 152 秒 | 97.4 秒 | 快 1.56 倍 |
| 設定欄 [*I] | 137 秒 | 90.6 秒 | 快 1.51 倍 |
| 排序 CSV [*J] | 373 秒 | 239 秒 | 快 1.56 倍 |
| 分割欄 [*K] | 536 秒 | 326 秒 | 快 1.64 倍 |
*A: 148 MB,3 百萬行,隨機 ASCII 文字檔案。
editor.OpenFile(sFileName, 0, eeOpenAllowNewWindow|eeDontUseTempFile);
*B: 1.03 GB,3 千萬行,隨機 ASCII 文字檔案。
document.selection.Replace('a', '', eeReplaceAll);
*C: 35.2 MB,1 百萬行,隨機 ASCII 文字檔案。
document.selection.SelectAll();
document.selection.Cut();
document.selection.Paste(eeCopyUnicode);
*D: 1.03 GB,3 千萬行,隨機 ASCII 文字檔案。
document.selection.SelectAll();
document.selection.ChangeCase(eeCaseUpperCase);
*E: 1.03 GB,3 千萬行,隨機 ASCII 文字檔案。
document.ConvertCsv(2, eeCsvDiscardUndo);
*F: 113 MB,1 千萬行,ASCII CSV 檔案。
document.AutoFill(1, 1, 1, 1, 1, 1, 1, 10000000, eeFillSeries, 2);
*G: 113 MB,1 千萬行,ASCII CSV 檔案。
document.CombineLines('1', '2,3', ';', '', eeRemoveDuplicates, 'en-US');
*H: 113 MB,1 千萬行,ASCII CSV 檔案。
document.InsertColumn(4, 'c', '', eeDontQuote, 1, 0);
*I: 113 MB,1 千萬行,ASCII CSV 檔案。
document.SetColumn(1, 'c', '', eeDontQuote, 1, 0);
*J: 113 MB,1 千萬行,ASCII CSV 檔案。
document.Sort('1>N-', eeSortBinaryComparison, '');
*K: 56.1 MB,5 百萬行,ASCII CSV 檔案。
document.SplitColumn('1', '0', eeSplitIntoColumns, '', 0, 0, 'en-US');
全部:預設選項,Windows 11, Ryzen 9 7950X, 96 GB RAM。
新增選項
新增命令
- 自訂說明 [P]
新增巨集功能 [P]
- 添加了 ShowCompletionList 屬性到 LanguageServerProp 對象中。
- 添加了 KeepRunning 屬性到 Shell 對象中。
備註
- [P] 僅限 EmEditor Professional
- [PF] EmEditor Professional 和 EmEditor Free
