A library of convenience functions that use when developing applications in Swift on Linux.
Import this into your Swift package with the following dependency declaration
.package(url: "https://github.com/tannerdsilva/TToolkit.git", from: "1.0.0")
What does TToolkit do?
Explosions allow for very high performance multithreaded collection enumeration. The performance benefits of multi-threaded enumeration can really be seen with high-count collections (typically with 100,000 items or more).
Exploding collections are also useful for explanding data. For example, a collection of URL's might be exploded to allow for multiple URL's to be fetched asyncronously.
Every variant of the
explode functions has a leading argument:
lanes:Int in which the numer of actively working threads can be defined. Lanes can be though of as the maximum number of threads that will be executed at any given time. When one lane is finished executing, another lane (if available) will begin executing in its place.