serge-sans-paille / pythran

Ahead of Time compiler for numeric kernels
https://pythran.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.99k stars 193 forks source link

Centralize all pythran-managed allocation in one place #2176

Closed serge-sans-paille closed 7 months ago

serge-sans-paille commented 8 months ago

This should make it easier to instrument allocations.

As a side effect slightly improve some string manipulation.

serge-sans-paille commented 8 months ago

cc @jeanlaroche

serge-sans-paille commented 8 months ago

@jeanlaroche : I've added a flag --trace-allocations to automate the instrumentation of memory allocation, is that close to what you had in mind?

jeanlaroche commented 8 months ago

This works really well and is super super useful for me!

serge-sans-paille commented 7 months ago

I've added some extra documentation, will merge afterward