harehare
mq
BlogDocsChangelog

♻️ refactor(error): add token() helper methods to error types

#957Merged
Comparing
refactor/error-handling-token-methods
(
e8f9c24
) with
main
(
f4d6008
)
CodSpeed Performance Gauge
0%
Untouched
15

Benchmarks

Passed

eval_dead_code_elimination_benchmark
crates/mq-lang/benches/benchmark.rs
CodSpeed Performance Gauge
+1%
151.5 µs150 µs
eval_string_interpolation
crates/mq-lang/benches/benchmark.rs
CodSpeed Performance Gauge
+1%
111.4 µs110.3 µs
eval_boolean_folding
crates/mq-lang/benches/benchmark.rs
CodSpeed Performance Gauge
+1%
151.1 µs149.8 µs
parse_fibonacci
crates/mq-lang/benches/benchmark.rs
CodSpeed Performance Gauge
+1%
150.3 µs149.4 µs
eval_comparison_folding
crates/mq-lang/benches/benchmark.rs
CodSpeed Performance Gauge
+1%
343.4 µs341.4 µs
eval_string_equality
crates/mq-lang/benches/benchmark.rs
CodSpeed Performance Gauge
+1%
4.8 ms4.8 ms
eval_nodes
crates/mq-lang/benches/benchmark.rs
CodSpeed Performance Gauge
+1%
4.2 ms4.2 ms
eval_foreach
crates/mq-lang/benches/benchmark.rs
CodSpeed Performance Gauge
0%
5.2 ms5.1 ms
eval_qualified_access_to_csv_module
crates/mq-lang/benches/benchmark.rs
CodSpeed Performance Gauge
0%
9.9 ms9.8 ms
eval_csv_parse
crates/mq-lang/benches/benchmark.rs
CodSpeed Performance Gauge
0%
9.9 ms9.9 ms
eval_json_parse
crates/mq-lang/benches/benchmark.rs
CodSpeed Performance Gauge
0%
13 ms12.9 ms
eval_while_speed_test
crates/mq-lang/benches/benchmark.rs
CodSpeed Performance Gauge
0%
16.7 ms16.7 ms
eval_select_h
crates/mq-lang/benches/benchmark.rs
CodSpeed Performance Gauge
0%
210.5 µs210.1 µs
eval_yaml_parse
crates/mq-lang/benches/benchmark.rs
CodSpeed Performance Gauge
0%
26.3 ms26.3 ms
eval_fibonacci
crates/mq-lang/benches/benchmark.rs
CodSpeed Performance Gauge
0%
54.8 ms54.9 ms

Commits

Click on a commit to change the comparison range
Base
main
f4d6008
+0.29%
♻️ refactor(error): add token() helper methods to error types Simplifies error handling by adding token() methods to all error types (ParseError, LexerError, EvalError, ModuleError, InnerError) instead of using large match expressions in Error::from_error(). Also adds #[cold] attributes to error paths for optimization and refactors EnvError to use manual trait implementations.
30f1527
2 days ago
by harehare
0%
Update crates/mq-lang/src/error.rs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
3619ee4
2 days ago
by harehare
+0.19%
♻️ refactor(error): remove inline attribute from fmt() and add cold attribute to to_eval_error_with_token()
40d50b7
2 days ago
by harehare
0%
♻️ refactor(error): add diagnostic message
e8f9c24
2 days ago
by harehare
© 2025 CodSpeed Technology
Home Terms Privacy Docs