ctLame
13.9×
MP3 · bit-identical to LAME 4.0
45 hours of CD audio in 85 s instead of almost 20 minutes – more than 1,900 times real time.
Product
ThinkMeta ConcurrentTasks is a C++ runtime that makes fine-grained parallelism worthwhile: it drives many small tasks on a few threads with almost no per-switch cost, so an algorithm can use every core without being rewritten around a new programming model. The science behind it is described under Research; the documentation covers the API in full.
What fine-grained parallelism gains is shown by five showcases built on ThinkMeta ConcurrentTasks: encoders for MP3, JPEG and Opus, and a gzip compressor. Each is a C++ port of a well-known reference implementation, writes exactly the same output byte for byte, and spreads the work on a single file over all cores. That is hard because these programs are sequential by design: every frame and every block depends on the state the one before it left behind. The fifth, ctJxl, starts from a reference that already runs in parallel, the JPEG XL encoder cjxl, and makes it faster by ordering its work differently, with the same output.
They are not products of their own but showcases with open source code: they show how ThinkMeta ConcurrentTasks is used, and anyone can reproduce the numbers. They run on the generic core DLL that anyone can download.
13.9×
MP3 · bit-identical to LAME 4.0
45 hours of CD audio in 85 s instead of almost 20 minutes – more than 1,900 times real time.
5.3×
JPEG · bit-identical to jpegli
Six photos, 99 megapixels, in 0.39 s – with jpegli’s smaller files, 3.6 times as fast as libjpeg-turbo.
4.3×
gzip · bit-identical to libdeflate 1.26
1.2 GB at 232 instead of 53 MB/s at level 9, streaming with asynchronous I/O – a 5.2 GB file needs less than 150 MB of memory.
4.5×
Opus · bit-identical to opusenc
At maximum complexity twice as fast as opusenc at minimum complexity. Live: 1,024 streams in real time, one task each, without a missed deadline.
1.6×
JPEG XL · bit-identical to cjxl 0.13
cjxl already runs in parallel; ctJxl orders its work differently: photos at the default quality 1.6 times as fast, animations up to 7 times. Preliminary.
Same bits. A fraction of the time.
Your code is written against the open API of ThinkMeta ConcurrentTasks. Underneath sits the core DLL, which drives the tasks. It comes in two forms:
The way in – and often all you need
For maximum performance in your product
Getting started is simple – and often the first step is all it takes.
Questions along the way? Get in touch – we are happy to help.
For the first release we are looking for teams who want to run ThinkMeta ConcurrentTasks on a real, compute- or latency-critical workload – game engines, medical imaging and signal processing, simulation, real-time media – and help shape it. Get in touch.
ThinkMeta ConcurrentTasks is in active development; the Windows and Linux builds (x64) are the current focus.
Target dates.