@@ -106,12 +106,7 @@ await timeProgram.execute({
106106}); // true
107107```
108108
109- > [ !NOTE]
110- >
111- > Performance measurements on an Apple M3 Pro show that compiling a complex CEL
112- > expression (with map/filter operations) takes about 1.4ms, while execution
113- > takes about 0.7ms. The one-step ` evaluate() ` function takes roughly 2ms as it
114- > performs both steps.
109+ > [ !TIP]
115110>
116111> Consider pre-compiling expressions when:
117112>
@@ -122,13 +117,19 @@ await timeProgram.execute({
122117>
123118> For one-off evaluations or when expressions change frequently, the convenience
124119> of ` evaluate() ` likely outweighs the performance benefit of pre-compilation.
120+ >
121+ > Performance measurements on an Apple M3 Pro show that compiling a complex CEL
122+ > expression (with map/filter operations) takes about 1.4ms, while execution
123+ > takes about 0.7ms. The one-step ` evaluate() ` function takes roughly 2ms as it
124+ > performs both steps.
125125
126126## Architecture
127127
128128This project consists of three main components:
129129
130- 1 . ** cel-rust** : The underlying Rust implementation of the CEL interpreter,
131- created by clarkmcc. This provides the core CEL evaluation engine.
130+ 1 . [ ** cel-rust** ] [ cel-rust ] : The underlying Rust implementation of the CEL
131+ interpreter, created by clarkmcc. This provides the core CEL evaluation
132+ engine.
132133
1331342 . ** NAPI-RS Bindings** : A thin Rust layer that bridges cel-rust with Node.js
134135 using [ NAPI-RS] ( https://napi.rs/ ) . NAPI-RS is a framework for building
@@ -161,18 +162,6 @@ The native module is built using NAPI-RS and provides cross-platform support:
161162[ loader ] : ./libs/core/src/native.cjs
162163[ wrapper ] : ./libs/core/src/index.ts
163164
164- ### Package Size
165-
166- Packages are sized at no more than 3 MB unpacked.
167-
168- > | Platform | Package |
169- > | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
170- > | macOS ARM64 (Apple Silicon) | [ ` @kevinmichaelchen/cel-typescript-darwin-arm64 ` ] ( https://www.npmjs.com/package/@kevinmichaelchen/cel-typescript-darwin-arm64 ) |
171- > | macOS x64 (Intel) | [ ` @kevinmichaelchen/cel-typescript-darwin-x64 ` ] ( https://www.npmjs.com/package/@kevinmichaelchen/cel-typescript-darwin-x64 ) |
172- > | Linux x64 | [ ` @kevinmichaelchen/cel-typescript-linux-x64-gnu ` ] ( https://www.npmjs.com/package/@kevinmichaelchen/cel-typescript-linux-x64-gnu ) |
173- > | Linux ARM64 | [ ` @kevinmichaelchen/cel-typescript-linux-arm64-gnu ` ] ( https://www.npmjs.com/package/@kevinmichaelchen/cel-typescript-linux-arm64-gnu ) |
174- > | Windows x64 | [ ` @kevinmichaelchen/cel-typescript-win32-x64-msvc ` ] ( https://www.npmjs.com/package/@kevinmichaelchen/cel-typescript-win32-x64-msvc ) |
175-
176165## Contributing
177166
178167### cel-rust submodule
0 commit comments