rusteerio 0.1.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.lock +1 -1
- package/Cargo.toml +1 -1
- package/README.md +7 -0
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/{chunk-DKULX6VO.mjs → chunk-DMRD3FGC.mjs} +1 -1
- package/dist/chunk-DMRD3FGC.mjs.map +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/slim.cjs.map +1 -1
- package/dist/slim.mjs +1 -1
- package/native/src/arena.rs +42 -13
- package/native/src/lib.rs +187 -17
- package/package.json +1 -1
- package/rusteerio.darwin-arm64.node +0 -0
- package/rusteerio.darwin-x64.node +0 -0
- package/rusteerio.linux-arm64-gnu.node +0 -0
- package/rusteerio.linux-arm64-musl.node +0 -0
- package/rusteerio.linux-x64-gnu.node +0 -0
- package/rusteerio.linux-x64-musl.node +0 -0
- package/rusteerio.win32-arm64-msvc.node +0 -0
- package/rusteerio.win32-x64-msvc.node +0 -0
- package/src/router.ts +3 -2
- package/dist/chunk-DKULX6VO.mjs.map +0 -1
package/Cargo.lock
CHANGED
package/Cargo.toml
CHANGED
package/README.md
CHANGED
|
@@ -147,6 +147,13 @@ Fresh Rust-backed nodes have Rusteerio's constructors: an `instanceof` check
|
|
|
147
147
|
against an independently installed `domhandler.Element` requires importing those
|
|
148
148
|
nodes or supplying a tree adapter that creates that class.
|
|
149
149
|
|
|
150
|
+
Each document reports its approximate native size to V8, so the garbage
|
|
151
|
+
collector reclaims unreachable documents under native memory pressure. Node.js
|
|
152
|
+
frees native memory after the current task completes. A long synchronous loop,
|
|
153
|
+
or a chain of already-resolved `await`s, that loads many large documents should
|
|
154
|
+
yield to the event loop periodically, for example with `await setImmediate()`
|
|
155
|
+
from `node:timers/promises`.
|
|
156
|
+
|
|
150
157
|
## Benchmarks
|
|
151
158
|
|
|
152
159
|
These measurements compare **Cheerio 1.2.0** against rusteerio on a Linux x64
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -4,7 +4,7 @@ This file preserves third-party license and attribution notices for the Rust nat
|
|
|
4
4
|
|
|
5
5
|
Generated by `node scripts/generate-notices.mjs` from `cargo metadata --locked`, crate license files, and the pinned supplemental sources recorded in `scripts/notices/sources.json`. It includes build dependencies and dependencies for all target platforms; a particular binary may use a subset. Identical notice texts are reproduced once and referenced below. The html5ever, markup5ever and html5gum crates contain local observer-hook and opt-in UTF-16 transport patches; their complete patched source and original notices are included in `native/vendor`. Other dependency source files are unmodified.
|
|
6
6
|
|
|
7
|
-
Cargo.lock SHA-256: `
|
|
7
|
+
Cargo.lock SHA-256: `972c2efc036e05a48803d6631cfd4f6026989898043bbd9aaf68bb52449c1716`.
|
|
8
8
|
|
|
9
9
|
## Source availability
|
|
10
10
|
|