• 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. Allegro X PCB Editor
  3. Garbage collection gc()

Stats

  • Replies 6
  • Subscribers 159
  • Views 14238
  • Members are here 0
More Content

Garbage collection gc()

eDaNoy
eDaNoy over 11 years ago

Dear All,

Is there any alternative to gc().

We don't have a license skillDev to enable gc().

Im having this lag problem everytime I load a huge amount of textFile

And I noticed my allegro used a lot memory after reading such file. 

 I only want to free up my memory before to start another event/function.

 

Please help. 

 

Thanks 

  • Sign in to reply
  • Cancel
  • eDave
    eDave over 11 years ago

    Garbage collection should be automatic. You shouldn't need to use gc.

    Have you made all your variables local using a let statement?

    Dave 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDaNoy
    eDaNoy over 11 years ago

    I did,

    I think Im facing a problem with my table that serves as GLOBAL variable I have just noticed recently.

    This table holds all my variables...

    Table grows bigger same as memory being use to allocate cells. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 11 years ago
    Huh? Why are you using a global? Avoid that if possible.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDaNoy
    eDaNoy over 11 years ago

    Im doing a previous skill Update.

    Lesson learned.. hahah table as global variable is a NO NO.

     

    Thanks Dave 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fxffxf
    fxffxf over 11 years ago

    If you use a global or assign long lists to a global, assign  nil to the variable when it is no longer required. This allows Skill to free the asssociated memory. It is also a good idea to get a skill developer's license so you can run Skill lint on your code. This can point out other issues.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
>
Cadence Guidelines

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