Hej
Jeg vil høre om der er nogle som kender bøger, links, generelle tips&tricks til
optimisering af kode generelt (som i største grad kan bruges af alle sprog).
Venlig hilsen
Martin
Optimisering af kode
-
- Level 1 - Speck of dust
- Posts: 16
- Joined: 16 Apr 2008, 11:01
- Location: Copenhagen
- Contact:
-
- Level 2 - Grain of sand
- Posts: 23
- Joined: 11 Mar 2008, 08:56
- Contact:
Re: Optimisering af kode
Prøv denne søgning på amazon.com http://www.amazon.com/s/ref=nb_sb_noss? ... =22&fsc=-1
Re: Optimisering af kode
Hi Martin,
I would be amazed if such a book existed. There is of course generalized optimization like moving constants out of loops and so on...
but optimization is very dependent on what you are trying to archive.
If you really need a generalized method to optimization that would work on almost all languages, then I would say cache as much as possible.
please note,.. my suggestions is related to speed optimization... if you are trying to optimize size then that's another story.
regards,
Peter Wraae Marino
I would be amazed if such a book existed. There is of course generalized optimization like moving constants out of loops and so on...
but optimization is very dependent on what you are trying to archive.
If you really need a generalized method to optimization that would work on almost all languages, then I would say cache as much as possible.
please note,.. my suggestions is related to speed optimization... if you are trying to optimize size then that's another story.
regards,
Peter Wraae Marino
-
- Level 2 - Grain of sand
- Posts: 23
- Joined: 11 Mar 2008, 08:56
- Contact:
Re: Optimisering af kode
den bedste ressource til optimering er i, efter min mening, optimering af algoritmer og datastrukturer. efterfølgende kan man kigge på sub-optimeringer med sprogspecifikke konstruktioner, maskinkode, cache udnyttelse, osv.
Re: Optimisering af kode
Der er lidt spredt fægtning omkring optimization, primært rettet mod C++ og game engines, i lecture slides fra 11-Nov og 16-Nov:
https://blog.itu.dk/MENP-E2009/course-schedule/
https://blog.itu.dk/MENP-E2009/course-schedule/
Michael 'Zacker' Schmidt
Portfolio | LinkedIn | Twitter
Pirates of New Horizons | Exit Strategy Entertainment
Portfolio | LinkedIn | Twitter
Pirates of New Horizons | Exit Strategy Entertainment
-
- Level 2 - Grain of sand
- Posts: 23
- Joined: 11 Mar 2008, 08:56
- Contact:
Re: Optimisering af kode
Unity-guttens oplæg ser ganske fornuftigt ud. Specielt er det godt han prædiker lidt i mod brugen af virtuals - som de fleste akademikere ville bruge til at løse det viste problemZacker wrote:Der er lidt spredt fægtning omkring optimization, primært rettet mod C++ og game engines, i lecture slides fra 11-Nov og 16-Nov:
https://blog.itu.dk/MENP-E2009/course-schedule/