No std ThreadId - #6056
Conversation
davidhewitt
left a comment
There was a problem hiding this comment.
Thanks, one comment on the FFI definition (see below).
Do you expect that the test suite (which does a lot of thread spawning) will need to change?
I don't think it will need to change, but it might be worth enabling it for wasm build and pulling in one of the wasm threading crates as a dev dependency. |
2f2eb80 to
513cc78
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
|
@codspeedbot explain why this is faster |
|
Should we exclude PyPy from |
def302d to
bd36107
Compare
|
I don't think this will work for PyPy, that means we will need to use rust std's |
bd36107 to
e2539ee
Compare
af0618c to
cd7e9f5
Compare
cd7e9f5 to
38db98b
Compare
1a7665d to
e38d574
Compare
|
I lost this thread, what made us conclude this doesn't work for PyPy? |
PyPy doesn't seem to have the function to get the thread id. |
|
It looks like it should be present: I'll try to figure out where it's going wrong and if needed report an issue upstream. |
e38d574 to
5b9a18c
Compare
Re-implement
ThreadIdusingPyThread_get_thread_ident. This makes is usable inno_stdcontext.