Skip to main content
added 135 characters in body
Source Link
Eric O. Lebigot
  • 95.1k
  • 49
  • 223
  • 263

(Freeing memory is periodically done automatically. del can be thus your friend, as it marks objects as being deletable when there no other references to them. Now, often the CPython interpreter keeps this memory for later use, so your operating system might not see the "freed" memory.)

Maybe you would not run into any memory problem in the first place by using a more compact structure for your data. Thus, lists of numbers are much less memory-efficient than the format used by the standard array module or the third-party numpy module. You would save memory by putting your vertices in a NumPy 3xN array and your triangles in an N-element array.

(Freeing memory is periodically done automatically. del can be thus your friend, as it marks objects as being deletable.)

Maybe you would not run into any memory problem in the first place by using a more compact structure for your data. Thus, lists of numbers are much less memory-efficient than the format used by the standard array module or the third-party numpy module. You would save memory by putting your vertices in a NumPy 3xN array and your triangles in an N-element array.

(del can be your friend, as it marks objects as being deletable when there no other references to them. Now, often the CPython interpreter keeps this memory for later use, so your operating system might not see the "freed" memory.)

Maybe you would not run into any memory problem in the first place by using a more compact structure for your data. Thus, lists of numbers are much less memory-efficient than the format used by the standard array module or the third-party numpy module. You would save memory by putting your vertices in a NumPy 3xN array and your triangles in an N-element array.

Added quick answer to the question.
Source Link
Eric O. Lebigot
  • 95.1k
  • 49
  • 223
  • 263

Lists(Freeing memory is periodically done automatically. del can be thus your friend, as it marks objects as being deletable.)

Maybe you would not run into any memory problem in the first place by using a more compact structure for your data. Thus, lists of numbers are much less memory-efficient than the format used by the standard arrayarray module or the third-party Numpynumpy module. You would save memory by putting your vertices in a NumpyNumPy 3xN array and your triangles in an N-element array.

Lists of numbers are much less memory-efficient than the format used by the standard array module or the third-party Numpy module. You would save memory by putting your vertices in a Numpy 3xN array and your triangles in an N-element array.

(Freeing memory is periodically done automatically. del can be thus your friend, as it marks objects as being deletable.)

Maybe you would not run into any memory problem in the first place by using a more compact structure for your data. Thus, lists of numbers are much less memory-efficient than the format used by the standard array module or the third-party numpy module. You would save memory by putting your vertices in a NumPy 3xN array and your triangles in an N-element array.

Source Link
Eric O. Lebigot
  • 95.1k
  • 49
  • 223
  • 263

Lists of numbers are much less memory-efficient than the format used by the standard array module or the third-party Numpy module. You would save memory by putting your vertices in a Numpy 3xN array and your triangles in an N-element array.