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
It looks like reserve makes a big difference here, so we should support it in LPython as well. For example by from lpython import reserve and just call this function. The CPython implementation will not do anything.
In CPython emulation this will be an empty function (no-op), in LPython we reserve the memory for this list, similar to reserve in C++, for performance.
It looks like reserve makes a big difference here, so we should support it in LPython as well. For example by
from lpython import reserve
and just call this function. The CPython implementation will not do anything.Here is how to use it:
In CPython emulation this will be an empty function (no-op), in LPython we reserve the memory for this list, similar to reserve in C++, for performance.
Originally posted by @certik in #2231 (comment)
The text was updated successfully, but these errors were encountered: