You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal of this PR is to resolvepyccel#1979 and to systematically address
memory allocation for STC containers.
This PR aims to use one of the following to address allocation of STC
containers:
- use STC `init` functions to allocate containers initialized with
literal lists, sets, or dictionaries.
- use `reserve` on STC containers when the capacity is known at compile
time and the container will be populated with append/add methods.
- use `resize` on STC containers when elements of the container will be
accessed through their indices in the code.
Care is taken to drop containers before they are reassigned or to reuse
them whenever possible.
---------
Co-authored-by: Emily Bourne <[email protected]>
0 commit comments