mirror of
https://github.com/tilleul/apple2.git
synced 2024-11-29 15:50:11 +00:00
Update README.md
This commit is contained in:
parent
e9e10da2c8
commit
81c465c49a
@ -22,15 +22,16 @@ then, there might be a chance that it ends up fast enough to be enjoyable.
|
|||||||
Applesoft: The Need For Speed is a series of articles that explain why some coding techniques are faster than others.
|
Applesoft: The Need For Speed is a series of articles that explain why some coding techniques are faster than others.
|
||||||
|
|
||||||
## Summary
|
## Summary
|
||||||
* **[Methodology](#methodology)**: learn how I've compared code snippets' speed
|
### Methodology
|
||||||
* **General tips**
|
1. [Methodology explained](#methodology): learn how I've compared code snippets' speed
|
||||||
1. [Use variables as placeholders for constant values](general/01_variables_for_constants.md): accessing a known value in a variable is faster than deciphering values in code.
|
### General tips
|
||||||
2. [Declare your most used variables first](general/02_declare_most_used_variables_first.md): create and/or reference the variables you're going to use the most as soon as possible
|
1. [Use variables as placeholders for constant values](general/01_variables_for_constants.md): accessing a known value in a variable is faster than deciphering values in code.
|
||||||
3. [Use one-letter variables names whenever possible](general/03_use_one_letter_variables_names.md): longer variables names take longer to parse.
|
2. [Declare your most used variables first](general/02_declare_most_used_variables_first.md): create and/or reference the variables you're going to use the most as soon1 as possible
|
||||||
4. [Never use integer variables](04_never_use_integer_variables.md): they are always slower to use than float variables
|
3. [Use one-letter variables names whenever possible](general/03_use_one_letter_variables_names.md): longer variables names take longer to parse.
|
||||||
- **Calculations**
|
4. [Never use integer variables](04_never_use_integer_variables.md): they are always slower to use than float variables, even when you think they're not
|
||||||
1. [Use addition instead of multiplication by 2](calculations/01_use_addition_instead_of_mul2.md): double addition of the same variable is faster than multiplying the variable by 2
|
### Calculations
|
||||||
2. [Addition is faster than subtraction](calculations/02_addition_is_faster_than_subtraction.md): avoid subtraction whenever possible but don't use negative constants.
|
1. [Use addition instead of multiplication by 2](calculations/01_use_addition_instead_of_mul2.md): double addition of the same variable is faster than multiplying the variable by 2
|
||||||
|
2. [Addition is faster than subtraction](calculations/02_addition_is_faster_than_subtraction.md): avoid subtraction whenever possible but don't use negative constants.
|
||||||
|
|
||||||
(and many others) coming soon...
|
(and many others) coming soon...
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user