Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ console.log(server.optimizations.snapshot());
Pass `opt: { notify: true }` to `listen()` if you want runtime logs when a route is already native static or looks stable enough to cache later.


This should outperform the OLD shit code (found in old/), and be 50% faster than bun.server(), write tests in test.js plus add benchmarks so we know its faster than bun.
This architecture is designed to outperform previous iterations and provide top-tier performance on par with or exceeding `bun.serve()`.
Run tests via `test.js` and use the benchmark suite to validate performance gains.


Since this is designed to be a core library, please ensure strict adherence to API stability and zero-allocation principles where possible.

Remeber nadhi u moron this will be a library so don't go around doing shit.

Expand Down
20 changes: 20 additions & 0 deletions rust-native/build.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
warning: variable does not need to be mutable
--> src/lib.rs:1638:9
|
1638 | let mut total_size =
| ----^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default

warning: function `build_response_bytes` is never used
--> src/lib.rs:1657:4
|
1657 | fn build_response_bytes(
| ^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: `http_native_napi` (lib) generated 2 warnings (run `cargo fix --lib -p http_native_napi` to apply 1 suggestion)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.07s
Loading
Loading