[new version] Helix 24.03
Helix是一个Rust写的编辑器,本次更新如下。
AWP一样的跳转。
块注释。
改进了多语言文档的解析。
内部改进:事件系统、用regex-cursor替换了regex。
GitHub: https://github.com/helix-editor/helix
[new lib] profi
profi是一个支持单线程/多线程细粒度的性能分析器。
使用示例:
// 基本方法
use profi::{prof, print_on_exit};
fn main() {
// Prints the timings to stdout when the program exits
// Always put at the top of the main function to ensure it's dropped last
//
// An implicit `main` guard is created to profile the whole application
print_on_exit!();
// Sleep for a bit to simulate some work
std::thread::sleep(std::time::Duration::from_millis(200));
}
// 循环
use profi::{prof, print_on_exit};
fn main() {
print_on_exit!();
for _ in 0..100 {
prof!(iteration);
std::thread::sleep(std::time::Duration::from_mill