M
M
Maxim2018-08-15 15:33:35
Swift
Maxim, 2018-08-15 15:33:35

How to optimize Swift code?

Hello toaster!
I recently started learning Swift and have a question right away. How to optimize Swift code? Does, for example, type aliases affect performance, and what other things affect code performance?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iMaximus, 2018-08-15
@Valter1234

I think it's too early for you to think about such things. First you need to get rid of the shitty code in general, learn the main patterns and their application. Properly apply algorithms.
50 if else or iterating over everything, instead of an elegant algorithm, affects the speed of code execution much more than aliases and the like :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question