shapely / shapely/shapely

Is it possible to enable multithread on unary_union and other operations?

Open
#1,243 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

documentation
Dominant language
Python
Stars
4.5k
Forks
631
Avg merge
1d 11h
Merged PRs (30d)
10

Description

This is not a bug report, but a question.

I see that shapely.ops.unary_union calls a union_all function defined in the set_operations module, which is not documented on the website.

The union_all function has a @multithreading_enabled decorator on it, but I don't see any method of applying the union operation in a multithreaded manner. Could someone enlighten me?

Thanks!

Operating system

Arch Linux

Shapely version and provenance

1.7.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading shapely.ops.unary_union and set_operations.union_all, then inspect the website documentation for union_all and the multithreading_enabled decorator. Done would require a documented, concrete explanation of the supported threading behavior and any resulting API or test requirements.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.