Comments (4)
I guess not. Apparently we do not have calling convention support for Union{Struct, Ghost}
, even though we very easily could (we have many variations on it already) and probably should (it is the iteration protocol)
from julia.
This is probably caused by 5b2fcb6 and is not multi-threading related:
julia> const dynvec = ScopedValue([0])
julia> @noinline function dynfun()
dvec = dynvec[]
dvec[1] += 1
return nothing
end
julia> foo() = @with dynvec=>[0] for _ in 1:1000_000; dynfun(); end
julia> @allocated foo()
16000208
The problem is this @noinline
which forces a wrapping Tuple{Vector{Int}}
to be allocated as a temporary, even though it is immediately unwrapped at every call-site:
Line 1004 in 58291db
from julia.
So is the problem there that the API wrongly returns an object of type (leaf.val,)
instead of Some{V}(leaf.val)
?
from julia.
Would Some{V}(leaf.val)
bypass the need to allocate the temporary here?
from julia.
Related Issues (20)
- Operations on `views` much slower when indices are `start:1:stop` HOT 7
- [1.11+] jl_array_t no longer contains elsz HOT 1
- Unreachable reached HOT 2
- `mkpath` does not stably return the original path
- Deserialization in a Module() HOT 2
- `last(::Tuple{})` throws `BoundsError` HOT 5
- document `FieldError`
- peek docstring has a disconnect HOT 2
- Precompiling and FunctionWrappers lead to extra runtime allocations HOT 4
- Matrix `exp` and `log` are not inverse of each other HOT 17
- recursive type parameter constraints HOT 3
- [CI] Intermittent failure in `Profile` on aarch64-linux-gnu HOT 1
- @time always shows reports compilation times while SnoopCompile does not HOT 6
- Problem with `similar` called for view-types such as `SubArray`, `ReshapedArray` or `ReinterpretArray` HOT 2
- 5% regression in some Inference benchmarks due to #51149 (Set temporary env whenever Julia is started with `--project=@temp`) HOT 6
- `BoundsError` when joining `AnnotatedStrings` with distinct label orderings HOT 1
- In-place `circshift!(arr, shifts)`
- Define `nextind(x, i::Integer)` or document existing methods HOT 1
- `sum(I -> A[I], CartesianIndices(A); dims=1)` needs initial value in order to work
- Segfault when loading conflicting `@ccallable` names from multiple pkgimages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from julia.