Commit 9499dce
committed
More towards major internal rewrite:
* Add support for 'globals = NULL'
* Add hidden 'reset' argument to future() that is passed to evalFuture() for controlling what is undone in the workers R session upon completion, e.g. envvars, options, global variables, ...
* Add internal setNumberOfThreads(), which can currently control OpenMP and Rcpp. This code was previously scatter here an there
* Add 'future_uuid()', which avoid one call to uuid() -> digest::digest()
* Drop internal-only globals() and packages() S3 generics
* Restructuring some of the cluster future code
* Add hidden support for 'R_FUTURE_PRUNE_PKG_CODE'
Squashed commit of the following:
commit dfc852a
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Mon Feb 17 11:06:09 2025 -0800
Fix bug in new setNumberOfThreads()
commit 7aec46f
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 22:33:56 2025 -0800
Add setNumberOfThreads()
commit eb080be
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 20:50:56 2025 -0800
Forgot to drop cleanup = TRUE in getExpression()
commit 068f6d0
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 20:46:12 2025 -0800
Support globals = NULL
commit 360fda7
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 20:45:40 2025 -0800
Prune also functions local to other functions
commit f682ede
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 20:06:09 2025 -0800
Drop a few unneeded unique()
commit 73d88b6
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 19:37:34 2025 -0800
evalFuture(): Replace logical 'cleanup' with character vector 'reset'
commit a296ac3
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 18:29:40 2025 -0800
Add plan('tail')
commit 59ad59d
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 18:00:58 2025 -0800
Fixes for conditions = NULL
commit 9b1dec3
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 17:26:33 2025 -0800
CLEANUP: base::local() -> local()
commit 0f54b80
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 17:18:30 2025 -0800
SPECIAL CASE: conditions = NULL (to be deprecated)
commit 870fc58
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 17:04:28 2025 -0800
CLEANUP: future uuid:s are no longer relying on the 'digest' package
commit 65657be
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 16:29:48 2025 -0800
Materialize option 'future.relay.immediate' as soon as future is created; avoids querying the option later. which makes it faster, but more importantly fixes the behavior upfront
commit b9e2307
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 16:28:02 2025 -0800
make uuid() a tad more performant
commit b6907e6
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 15:16:48 2025 -0800
More performance tweaks
commit 2d7d943
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 14:39:55 2025 -0800
Add internal canForceSingleThreading() that memoizes the result
commit cd350bc
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 13:55:23 2025 -0800
More performance improvements:
Add internal getSysCalls() - create sysCalls() once per R session.
Add with_assert() and option to prune it
commit 502686f
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 12:52:59 2025 -0800
Update default plan from "future" to future::sequential - avoids some lookup code
commit a42f7a0
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 12:50:49 2025 -0800
remove stray test code
commit 0007791
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 10:51:32 2025 -0800
CLEANUP: Drop internal globals() and packages() generics
commit 6607b95
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 10:33:45 2025 -0800
more, minor performance improvements
commit e9db64c
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 10:15:25 2025 -0800
Slight performance improvement: future$foo -> future[["foo"]]
commit 262fc4e
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 09:41:33 2025 -0800
Add support for 'R_FUTURE_PRUNE_PKG_CODE'
commit f226a8b
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sun Feb 16 08:54:35 2025 -0800
tiny performance improvements
commit 6a70e0f
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sat Feb 15 23:58:32 2025 -0800
Add attachPackages()
commit b29a8a6
Author: Henrik Bengtsson <henrik.bengtsson@gmail.com>
Date: Sat Feb 15 20:40:09 2025 -0800
First steps toward a FutureBackend class; emulating for ClusterFuture for now1 parent d17e255 commit 9499dce
File tree
43 files changed
+1558
-1081
lines changed- R
- man
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
43 files changed
+1558
-1081
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
39 | | - | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
| |||
187 | 185 | | |
188 | 186 | | |
189 | 187 | | |
| 188 | + | |
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
| |||
0 commit comments