Fresh Beginning
  • Home
  • Speaking
  • Github
  • Buy Me A Coffee
  • Patreon
  • Reading
  • About Me
Subscribe

Optimization

A collection of 2 posts
Swift 3.0

A nice little optimization trick for Swift arrays

Swift arrays are value types that allow dynamically storing the arbitrary numbers of values without knowing the exact count at the beginning. Although this is great when you don't know the exact number of elements you're going to store in advance, you can use a nice optimization technique when you
Jan 21, 2022 2 min read
Swift 3.0

Tail Recursion Optimization

Recently I came to know about amazing concept of tail recursion optimization. If you are a computer scientist, you must be knowing what recursion [https://en.wikipedia.org/wiki/Recursion_(computer_science)] is. It is a function calling itself multiple times until certain edge condition is reached. When an edge
Jan 12, 2017 4 min read
Fresh Beginning © 2023
Powered by Ghost