mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
another example of microoptimization
This commit is contained in:
parent
31758e668f
commit
02f7f9c087
@ -112,6 +112,7 @@ Micro-optimizations try to improve the performance of an application by replacin
|
||||
* eliminate an allocation.
|
||||
* replace `Vector3.Distance(a,b) < K` with `Vector3.SqrMagnitude(b - a) < K * K`
|
||||
* convert a class to struct
|
||||
* manually inlining small functions
|
||||
|
||||
Macro-optimizations try to improve the performance of an application by changing the algorithm. Some examples include:
|
||||
* Serialize a message once O(1), instead of for every single client O(n)
|
||||
|
Loading…
Reference in New Issue
Block a user