Comments (4)
To be clear - if you make tens of requests and not just a couple of requests is this still the case? The renderer is cached per event loop so I'd expect to see this ~ 8 times (depending on the number of cores you have). So once each event loop has a cache then it should stop showing those notices
from leaf.
I don't know about the tens of requests but I've done a single repeated request with 100 iterations and 100 concurrencies and it happened 100 times:
Also, my test server is currently running on a single core.
from leaf.
Yeah that looks like a bug. What version of Leaf and LeafKit are in Package.resolved. And what's your environment? Is it reproducible in Xcode since that looks like a compose container
from leaf.
Here is the pacage.resolve:
{
"object": {
"pins": [
{
"package": "async-http-client",
"repositoryURL": "https://github.com/swift-server/async-http-client.git",
"state": {
"branch": null,
"revision": "0dda95cffcdf3d96ca551e5701efd1661cf31374",
"version": "1.2.5"
}
},
{
"package": "async-kit",
"repositoryURL": "https://github.com/vapor/async-kit.git",
"state": {
"branch": null,
"revision": "5760c79afb8ebc24fd3251fdd9724af225fdf1f9",
"version": "1.3.0"
}
},
{
"package": "console-kit",
"repositoryURL": "https://github.com/vapor/console-kit.git",
"state": {
"branch": null,
"revision": "08f36a30e0893e6a52fefbf1c2db4a6bc1288ba2",
"version": "4.2.5"
}
},
{
"package": "leaf",
"repositoryURL": "https://github.com/vapor/leaf.git",
"state": {
"branch": null,
"revision": "9e8682841137a82bb95bfb03c5df1ce718be7f89",
"version": "4.1.0"
}
},
{
"package": "leaf-kit",
"repositoryURL": "https://github.com/vapor/leaf-kit.git",
"state": {
"branch": null,
"revision": "e8d4f8894bf36889fda9c5b2a9d42bc5021b30c8",
"version": "1.2.0"
}
},
{
"package": "multipart-kit",
"repositoryURL": "https://github.com/vapor/multipart-kit.git",
"state": {
"branch": null,
"revision": "08588dc4233ad4bea8aa91fa275342276a12ad19",
"version": "4.0.1"
}
},
{
"package": "routing-kit",
"repositoryURL": "https://github.com/vapor/routing-kit.git",
"state": {
"branch": null,
"revision": "dab93b6b90caa6501a2d30f81bad8052c18d97fb",
"version": "4.2.1"
}
},
{
"package": "swift-backtrace",
"repositoryURL": "https://github.com/swift-server/swift-backtrace.git",
"state": {
"branch": null,
"revision": "93b3d9a76454e05379a32a2f3b2a1f5a7794b414",
"version": "1.2.1"
}
},
{
"package": "swift-crypto",
"repositoryURL": "https://github.com/apple/swift-crypto.git",
"state": {
"branch": null,
"revision": "3bea268b223651c4ab7b7b9ad62ef9b2d4143eb6",
"version": "1.1.6"
}
},
{
"package": "swift-log",
"repositoryURL": "https://github.com/apple/swift-log.git",
"state": {
"branch": null,
"revision": "5d66f7ba25daf4f94100e7022febf3c75e37a6c7",
"version": "1.4.2"
}
},
{
"package": "swift-metrics",
"repositoryURL": "https://github.com/apple/swift-metrics.git",
"state": {
"branch": null,
"revision": "e382458581b05839a571c578e90060fff499f101",
"version": "2.1.1"
}
},
{
"package": "swift-nio",
"repositoryURL": "https://github.com/apple/swift-nio.git",
"state": {
"branch": null,
"revision": "3be4e0980075de10a4bc8dee07491d49175cfd7a",
"version": "2.27.0"
}
},
{
"package": "swift-nio-extras",
"repositoryURL": "https://github.com/apple/swift-nio-extras.git",
"state": {
"branch": null,
"revision": "de1c80ad1fdff1ba772bcef6b392c3ef735f39a6",
"version": "1.8.0"
}
},
{
"package": "swift-nio-http2",
"repositoryURL": "https://github.com/apple/swift-nio-http2.git",
"state": {
"branch": null,
"revision": "f4736a3b78a2bbe3feb7fc0f33f6683a8c27974c",
"version": "1.16.3"
}
},
{
"package": "swift-nio-ssl",
"repositoryURL": "https://github.com/apple/swift-nio-ssl.git",
"state": {
"branch": null,
"revision": "07c160b8724ee53a4b776328122be6338ff12bf2",
"version": "2.11.0"
}
},
{
"package": "swift-nio-transport-services",
"repositoryURL": "https://github.com/apple/swift-nio-transport-services.git",
"state": {
"branch": null,
"revision": "1d28d48e071727f4558a8a4bb1894472abc47a58",
"version": "1.9.2"
}
},
{
"package": "vapor",
"repositoryURL": "https://github.com/vapor/vapor.git",
"state": {
"branch": null,
"revision": "5c3f1703cdce2cbced837d07aae6d1a897abf0b9",
"version": "4.44.1"
}
},
{
"package": "websocket-kit",
"repositoryURL": "https://github.com/vapor/websocket-kit.git",
"state": {
"branch": null,
"revision": "2b06a70dfcfa76a2e5079f60e3ae911511f09db0",
"version": "2.1.2"
}
}
]
},
"version": 1
}
It is on a docker-compose that runs the default docker file. I can't test on mac and Xcode right now.
from leaf.
Related Issues (20)
- Rationale behind using '#' character? HOT 3
- Add leaf format support in Xcode HOT 1
- Custom header for a single view HOT 2
- Leaf crashes encoding array of optional UUIDs
- Render to String HOT 4
- [Question]How to set button onClick? HOT 2
- Questions about syntax highlighting and formatting for leaf HOT 3
- Bugs on Xcode 13.3 HOT 1
- Being able to loop over arrays that are the results of function calls HOT 1
- import statement unresolved causing error HOT 2
- [4.2.1] Fails to build with: Value of type '[CodingKey?]' has no member 'compacted' HOT 2
- Memory Leak on View Render with Encodable Struct/Enum HOT 2
- Leaf/LeafEncoder.swift:162: Fatal error after passing DB-Data to a Leaf-View HOT 2
- Consider adding a built-in view context HOT 3
- Xcode syntax highlighting HOT 1
- Consider adding the ability to use a dictionary as a view context HOT 9
- I hope Xcode can better support Leaf.
- New label request
- Reuse HML components
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leaf.