Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Load constants from data segment #2618
Currently, Cython generates code to create constants (strings, tuples, code objects, …) at module init time, using C-API calls. As an experimental patch by Facebook shows, the entire objects could be statically allocated and loaded from the C data segment instead. The resulting C code shows a nice example of code that Cython could generate as well.