Skip to content

Instantly share code, notes, and snippets.

View jjerphan's full-sized avatar
🍝
Off, no trabajo, Julien.

Julien Jerphanion jjerphan

🍝
Off, no trabajo, Julien.
View GitHub Profile
@Micky774
Micky774 / demo.pyx
Created December 29, 2022 01:02
Cython vtable workarounds
# Compile with annotated view to compare generated instructions
# and presence of `__pyx_vtabstruct_*`
from cython cimport final
# Typedef function pointer
ctypedef int (*f_type)(A)
# Ancestor, serves as interface/ABC
cdef class A:
cdef f_type func
@gjoseph92
gjoseph92 / README.md
Last active June 6, 2023 13:25
Share speedscope profiles in GitHub issues

An easy way to share speedscope profiles in GitHub issues

Speedscope is an excellent profile viewer. Maybe you're recorded a profile with py-spy and you want to show it to other people in a GitHub issue. The speedscope app can render profiles from a URL, but where do you store the profile?

You can do this easily with gists, githack, and a little script:

Installation: