How Photos+ operates fast large-scale bulk tasking.

StellarStep
Nov 22, 2018 · 2 min read

As many our users already know well, one of the core parts of Photos+ is the universal batch tasking itself. “the universal” means, in fact, Photos+ is not only a bulk photo editing app, internally we’ve implemented some large tasking structure for dynamically processing all kind of task in parallel.

A rough internal structure of Photos+’ task management.

Above picture can explain how we process multiple photo items fast.

It’s very similar to the most web application’s load balancing principle. When total memory consumption is high, Load Balancer calculates and assigns each task to a pipeline which has minimum/low weighted tasks.

Maximum 4 task pipelines are activated with current situations or conditions of the resource such as memory usage or device’s processing power. Also, it can force the maximum number of processing unit depends on its complexity or load.

Task pooling

Moreover, in practical development point of view, all tools in Photos+ has mainly consisted of a bunch of “Task Cloud” which means the code base for sharing to perform each individual task, for example, “convert video into a GIF”, some of them can share each other if they are required in the same for each purpose.

<Task B> is currently shared.

A real-world comparison

So we actually can compare that total processing speed (1x) for each case via our “Rotation” tool which has simple and linear processing cost.

The left video demonstrates a case configured to the number of the pipeline to 1, right is 4. A tested device was iPhone X. The total duration was about 20sec Vs. 8sec.

A case of 4-pipeline is about 2.5x faster than a single pipeline. Yes, as we expected naturally, it was not 4x.

A case of 4-pipeline is about 2.5x faster than a single pipeline.

Yes, It’s winning. But Photos+ restrictively allows the number of maximum pipelines, so especially users who have an old device with low-performance CPUs. Even it might be the single. By the way, we’ve tested for 2K+ photos, but theoretically, it has no limitation, and many efforts have invested(also will invest) it for more fast, complex, and large-scale media processing.

Today, meet next-gen batch photo editing tools, Photos+ (get.apps.photo) for free.

Photos Plus

Thinking photoOS beyond Apps — the infinite-purpose photo…

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store