-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Benchmark studycase: split #188
Labels
Comments
Looks like a lot of time is spend in |
julia> using BenchmarkTools
julia> const s = "foo";
julia> @btime pointer_from_objref(s)
1.500 ns (0 allocations: 0 bytes)
Ptr{Nothing} @0x00007f6ac35d33f0
julia> @btime @interpret pointer_from_objref(s)
1.170 ms (503 allocations: 30.91 KiB)
Ptr{Nothing} @0x00007f6ac35d33f0 |
FWIW
now |
at #237 |
at #245 |
with #245 and JuliaLang/julia#31541 Commenting out the
|
While this is a nice thing to keep seeing improvements here I don't think there is anything special about the performance of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The interpreter is fast enough that stepping line for line can usually be done without any noticable lag. However, I have found that
split
seems very slow:The original case was similar to the code above, but also included a loop over all lines splitting into
"abc"
and"123"
. I am not sure what the expected slowdown is, but at least this is something that really stood out. I am just posting this since it seems like an interesting case.The text was updated successfully, but these errors were encountered: