New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move general purpose data structures to separate product or package #1765
Comments
I am disinclined to want to do this for PriorityQueue. PriorityQueue is not API in NIO today, and I don’t really want to draw an API boundary around it. For CircularBuffer and ByteBuffer there is something to be said for this idea. I’d be open to pulling each of those out to their own library target and product, though I don’t want to put them in another package. @weissi how do you feel about that idea? |
Ping @weissi. |
I'd think that |
I'm interested since I'm bringing over the entirety of I ignore if there's a reason why it's not feasible to migrate this to a standalone package or at least expose it as its own library product. |
What are you using from |
I'm using both |
ByteBuffer is fairly easy to extract by itself: extract all files with the name |
I'm understanding that you mean to copy over the files directly to the project. Definitely, it's a fairly easy solution for it to work now if it's an emergency kind of situation but going on the note from @patrickfreed's original comment, it would lack the possibility to use a mature generic structure, like Would it be possible to accommodate the standalone import of |
At this time we remain negative on the idea: we'd like to see the Swift community work to solve this problem a bit more broadly. There's nothing technically infeasible about the idea though. |
There are a number of general purpose data structures included in SwiftNIO that would be useful in projects that don't require the rest of SwiftNIO itself (e.g.
ByteBuffer
). To avoid having to pull in all of NIO as a dependency just to use these structures, it would be nice if they were contained in their own smaller product or package, similar toNIOConcurrencyHelpers
.Personally, this would help reduce the compilation times / binary sizes of
swift-bson
, which only usesByteBuffer
out of its NIO dependency.PriorityQueue
is another structure that might be used similarly, as seen in this post on the Swift forums.The text was updated successfully, but these errors were encountered: