• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. makeTable memory usage

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 14498
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

makeTable memory usage

ahamlett
ahamlett over 16 years ago

Is there a way to release the memory used by the makeTable() function? If you assign nil to the variable holding the table object, will the table be deleted and the memory freed?

I would like to use makeTable in a pcell, however I'm worried about using too much memory if the table data is always around and duplicated wherever the pcell is used.

I could use remove(g_key o_table) on every element.

  • Cancel
Parents
  • Austin CAD Guy
    Austin CAD Guy over 16 years ago

     Also be aware that when you pass a table as an argument, you are passing a pointer to the table and not the values in it. So if you change a value in the table inside a program where it came in as an argument, you change the table itself.

    HOWEVER- It is much faster and takes less memory to pass the table as an argument than to pass the very large list of individual arguments. If your table variable is defined in a let statement, it will be garbage collected when it finally goes out of scope.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Austin CAD Guy
    Austin CAD Guy over 16 years ago

     Also be aware that when you pass a table as an argument, you are passing a pointer to the table and not the values in it. So if you change a value in the table inside a program where it came in as an argument, you change the table itself.

    HOWEVER- It is much faster and takes less memory to pass the table as an argument than to pass the very large list of individual arguments. If your table variable is defined in a let statement, it will be garbage collected when it finally goes out of scope.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information