コンテンツにスキップ

最適化 (情報工学)

出典: フリー百科事典『ウィキペディア(Wikipedia)』

: Optimization information engineering efficiently使1

"optimization"  "optimal"使使

使使CPU

[]


C1N
int sum = 0;
for (int i = 1; i <= N; i++)
  sum += i;
printf("sum: %d\n", sum);

演算でのオーバーフローが発生せず、かつ、N >= 0 ならば、これを以下のような数学的な式で書き換えることもできる。

int sum = (N * (N + 1)) / 2;
printf("sum: %d\n", sum);



N

[]


使使()


[]







[]


#

1%25%75%99%CPU綿



11使

[]






1974ACMp. 56p. 30

#1974Go To Statement Considered HarmfulStructured Programming with go to Statements[1]

 Charles Cook 

調[2]



/


[]


PHP使

使

 JavaScript PHP

[]


I/Ovolatile 





使調1使

使

PythonC使CD





 (optimizer) 

EiffelEsterel使


[]


CPU使

[]




 x = a + b * 4  x = a + b <<2 

WebCPUGPU

[]




0 50%, 25%, 12.5%, 6.25%, ... 


[]


 - Ada Byron's notes on the analytical engine 1842.

 - W.A. Wulf

97%3%[3] - 

 - 

: :  - Michael A. Jackson

[]


 ()












LLVM


































[]



(一)^ p. 52

(二)^ The Fallacy of Premature Optimization by Randall Hyde

(三)^ : Structured Programming with Goto Statements Archived 2009824, at the Wayback Machine.. Computing Surveys 6:4 (1974), 261301. 

[]


Jon Bentley: Writing Efficient Programs, ISBN 0-13-970251-2.

: The Art of Computer Programming

[]


Programming Optimization

C,C++ optimization

C optimization tutorial

Software Optimization at Link-time And Run-time

"A Plea for Lean Software" by Niklaus Wirth

Description from the Portland Pattern Repository

Performance tuning of Computer Networks

An article describing high-level optimization

Optimization for video games (gpu and cpu)