Difference between revisions of "Talk:Development:Script:obj2obj converter"

From VsWiki
Jump to: navigation, search
(Tips on code style)
 
(Tips on code style)
 
Line 2: Line 2:
 
* You can have if / elsif with perl as it optmizes for switch or not depending on what will be faster.<BR/>(Or atleast it's supposed to). (by [http://vegastrike.sourceforge.net/forums/viewtopic.php?p=35298#35298 this] guest via PM)
 
* You can have if / elsif with perl as it optmizes for switch or not depending on what will be faster.<BR/>(Or atleast it's supposed to). (by [http://vegastrike.sourceforge.net/forums/viewtopic.php?p=35298#35298 this] guest via PM)
 
** [[User:pontiac|Pontiac]] 12:36, 10 May 2005 (PDT) Yeah, i know, but this is a minor performance thing.<bR/>The main problems i'm getting are the storage of a huge amount of data in memory (hashes with several tousands of entries and the like) and recursive functions everywhere using them :-/<BR/>Is there an easy solution to map a big hash to a temp-file so it save precious memory?
 
** [[User:pontiac|Pontiac]] 12:36, 10 May 2005 (PDT) Yeah, i know, but this is a minor performance thing.<bR/>The main problems i'm getting are the storage of a huge amount of data in memory (hashes with several tousands of entries and the like) and recursive functions everywhere using them :-/<BR/>Is there an easy solution to map a big hash to a temp-file so it save precious memory?
 +
* It may be ugly, but gotos may be better then using subs in perl as perl's subs are ineffecient. Might get you some speed increase? (by guest via PM)

Latest revision as of 18:40, 14 May 2005

Tips on code style

  • You can have if / elsif with perl as it optmizes for switch or not depending on what will be faster.
    (Or atleast it's supposed to). (by this guest via PM)
    • Pontiac 12:36, 10 May 2005 (PDT) Yeah, i know, but this is a minor performance thing.
      The main problems i'm getting are the storage of a huge amount of data in memory (hashes with several tousands of entries and the like) and recursive functions everywhere using them :-/
      Is there an easy solution to map a big hash to a temp-file so it save precious memory?
  • It may be ugly, but gotos may be better then using subs in perl as perl's subs are ineffecient. Might get you some speed increase? (by guest via PM)