No description
This improves memory usage and performance. The idea is exactly the same though. But instead of using `push()` and `pop()` we just build up 2 objects where we can track the number and parent individually based on the `depth`. This means that we only allocate 2 objects (which we change over time) we then simply use `parents[depth]` and `offsets[depth]` to get the necessary data out. Additionally, we're only storing the index/offset and the parent now. Since the incoming ast is `T[]`, it means that we don't really have a parent. For this we can create a fake parent (which is never passed to `enter(…)`, `exit(…)` or used by `path()`) |
||
|---|---|---|
| .github | ||
| crates | ||
| integrations | ||
| packages | ||
| patches | ||
| playgrounds | ||
| scripts | ||
| .gitattributes | ||
| .gitignore | ||
| .npmrc | ||
| .prettierignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| CHANGELOG.md | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| rust-toolchain.toml | ||
| turbo.json | ||
| vitest.workspace.ts | ||
A utility-first CSS framework for rapidly building custom user interfaces.
Documentation
For full documentation, visit tailwindcss.com.
Community
For help, discussion about best practices, or feature ideas:
Discuss Tailwind CSS on GitHub
Contributing
If you're interested in contributing to Tailwind CSS, please read our contributing docs before submitting a pull request.