d0bc749bb4
- add SharedArray to share numpy arrays - fix async call_later when no event loop is available
Wim Pomp
2025-01-06 18:01:55 +01:00
326a06f9da
- add SharedArray to share numpy arrays - fix async call_later when no event loop is available
Wim Pomp
2025-01-06 18:01:55 +01:00
eb92ce006d
- make cpu_count a field to PoolSingleton for easy global configuration of number of processes - remove TypeVars - manually wrap parfor and pmap - also redirect output when retrieving task
Wim Pomp
2024-12-20 16:43:02 +01:00
31e07b49eb
- statically determine gil/nogil, otherwise we cannot subclass some things
Wim Pomp
2024-12-05 12:57:46 +01:00
7291468fb7
- add async callback to close pool after 10 minutes of inactivity
Wim Pomp
2024-11-05 15:05:10 +01:00
46bd419d3d
- add Task class for typing again
Wim Pomp
2024-11-04 14:52:46 +01:00
c47650fc30
- add close method to PoolSingleton class again
Wim Pomp
2024-10-22 11:23:16 +02:00
57b3fbe2b2
- nogil version (selected automatically) which uses threads instead of processes
Wim Pomp
2024-10-20 12:45:51 +02:00
b3aabc68ab
- nogil version (selected automatically) which uses threads instead of processes
Wim Pomp
2024-10-20 12:45:08 +02:00
f43734c8be
- fix zeros length iterator bug - fix bug where sometimes not all results are returned
Wim Pomp
2024-09-13 14:53:42 +02:00
fb7757828f
- fix serial computation - some more tests
Wim Pomp
2024-09-11 13:08:03 +02:00
4d80316244
- add gmap: function like pmap, but returning a generator instead of a list - add arguments for returning results out/in order and returning result indices
Wim Pomp
2024-09-05 18:37:47 +02:00
29203dd128
- redirect stdout and stderr in child processes to devnull instead of None - add parfor.__version__
Wim Pomp
2024-07-22 17:32:17 +02:00
9ce96a7e61
- redirect stdout and stderr in child processes
Wim Pomp
2024-07-08 17:57:23 +02:00
b609df8b52
- bugfix: do not restart pool when n_processes = None
Wim Pomp
2024-05-28 16:35:14 +02:00
9783c1d1f2
- introduce n_processes to change the number of processes in the pool
Wim Pomp
2024-05-24 16:57:35 +02:00
bb3b87b913
- catch and ignore errors when emptying queue - timeout on closing pool - close manager on closing pool
Wim Pomp
2024-01-29 11:25:22 +01:00
0b0c7a798f
- Shutdown workers after 10 minutes of inactivity. Restart pool when needed again.
Wim Pomp
2023-11-18 13:38:01 +01:00
ad8d9a4efb
- Protect reference counter with a lock because changes to a multiprocessing manager dict are not atomic.
Wim Pomp
2023-11-08 12:50:30 +01:00
f22b682b2a
- skip KeyboardInterrupts in workers - silence some warnings
Wim Pomp
2023-11-07 15:04:54 +01:00
e936292905
- Implement reference counting to make sure the parent process does not trash the item before all children trashed it.
Wim Pomp
2023-10-27 17:48:52 +02:00
265470e0ac
- Use a shared memory approach. - Track unpickled objects by CouldNotBePickled class. - Bump minimal python to 3.8.
Wim Pomp
2023-10-12 14:46:42 +02:00
f3302f6dba
- Use a singleton pool to prevent lengthy restarts of the pool, this also means that arguments for pool size have gone. - Removed qbar and TqdmMeter. - Wrap chunked function for better error messages.
Wim Pomp
2023-09-08 17:19:35 +02:00
32c5560306
- rename some things to conform to PEP - pmap and parfor now automatically divide the task in chunks: less pickling is needed this way - pickle code in a new file: prevent some unpickleble things from getting pickled - Chunks now supports generators when the length keyword argument is supplied - TqdmMeter can have a description
Wim Pomp
2022-05-03 15:55:11 +02:00
d2c226a37e
- rename some things to conform to PEP - pmap and parfor now automatically divide the task in chunks: less pickling is needed this way - pickle code in a new file: prevent some unpickleble things from getting pickled - Chunks now supports generators when the length keyword argument is supplied - TqdmMeter can have a description
Wim Pomp
2022-05-03 15:55:11 +02:00
865ec70d97
- bug fix in killed process detection
Wim Pomp
2022-03-22 15:36:07 +01:00
fcf451cb23
- drop support for python 2 - automatically kill javabridge (if it exists) at the end of a process - better hashing and tasking
Wim Pomp
2022-03-03 12:43:00 +01:00
4bddca82eb
- option for a callback function to update a user defined bar
Wim Pomp
2021-07-29 21:04:28 +02:00
8ed1a5500e
- chunks: kwargs to set number of chunks relative to number of cpus
Wim Pomp
2021-07-17 10:54:00 +02:00
bc2ae2ea25
- Make progress bar update with chunksize when using chunks. - Catch exceptions, but not keyboard interrupts.
Wim Pomp
2021-05-29 11:09:54 +02:00
61f1429543
- bar for serial case
Wim Pomp
2021-02-20 15:17:17 +01:00
3d99250b98
- force number of workers to be at least 2 - update readme
Wim Pomp
2021-01-04 12:35:01 +01:00
0721e2125c
- differentiate use of nP into nP and rP - default to using one process per cpu core - update requirements with versions
Wim Pomp
2021-01-04 12:25:19 +01:00
da70cf7a2f
- Dill (almost) everything. - Change dill a little to automatically omit undillable parts of objects. - README.me Limitations
w.pomp
2020-09-03 11:29:15 +02:00
881496b8f4
- Add github link to setup.py - Add install_requires
w.pomp
2020-08-31 17:39:52 +02:00
0d07638e98
First commit.
w.pomp
2020-08-31 16:10:12 +02:00