Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Optimize Your Kotlin Performance - Profiling, Micro-optimizations and Precomputing

Автор: Pairing with Duncan

Загружено: 2023-01-20

Просмотров: 1410

Описание:

In the last episode (   • TDD Algorithm Design - Generating Anagrams...  ) we had fun generating anagrams. The code was too slow though, so today we are going to look at optimizing the performance of our algorithm.

We start with a performance test to allow us to measure how long it is taking, and then profile the running code in IntelliJ to see where it is spending most of its time. That gives us candidates for micro-optimizations - making specific pieces of code run quicker.

When that stops paying dividends we turn our attention to a more major change - precomputing information so that we we can weed out non-anagrams quicker. This needs structural changes, but gives another speed boost without making everything incomprehensible.

The code is available on GitHub - https://github.com/dmcg/bumper-generator
I'm offering a prize of a signed copy of my book to the best suggestion for further optimization - either raise a PR or, if you just have a bright idea, let's chat about it in the comments below.

If you like this, you’ll probably like the book Java to Kotlin, A Refactoring Guidebook
http://java-to-kotlin.dev

Optimize Your Kotlin Performance - Profiling, Micro-optimizations and Precomputing

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Master Complex Algorithm Testing Using Property-Based Tests

Master Complex Algorithm Testing Using Property-Based Tests

Bill Gates PANICS as Gamers ABANDON Windows 11 — Gamers Going Towards Linux

Bill Gates PANICS as Gamers ABANDON Windows 11 — Gamers Going Towards Linux

Co Naprawdę Oznacza Podpisanie Umowy Mercosur? Rolnictwo, Klauzule Ochronne, Sprzeciw Państw, TSUE!

Co Naprawdę Oznacza Podpisanie Umowy Mercosur? Rolnictwo, Klauzule Ochronne, Sprzeciw Państw, TSUE!

TDD Algorithm Design - Generating Anagrams in Kotlin

TDD Algorithm Design - Generating Anagrams in Kotlin

Git and Git Hub | how make changes using Clone, Commit, checkout and git Push Commands | Nagaraju

Git and Git Hub | how make changes using Clone, Commit, checkout and git Push Commands | Nagaraju

Checkout Kata in Kotlin - Part 1 - TDD

Checkout Kata in Kotlin - Part 1 - TDD

Improving Software Performance with Algorithm Analysis

Improving Software Performance with Algorithm Analysis

How I Debug Production Errors in 5 Minutes with AI

How I Debug Production Errors in 5 Minutes with AI

Я в опасности

Я в опасности

Testing

Testing

120 МИЛЛИАРДОВ: КТО и Зачем создал БИТКОИН? Тайна Сатоши Накамото

120 МИЛЛИАРДОВ: КТО и Зачем создал БИТКОИН? Тайна Сатоши Накамото

ВСЕ накопители ДАННЫХ: объясняю за 8 минут

ВСЕ накопители ДАННЫХ: объясняю за 8 минут

The Man Behind Google's AI Machine | Demis Hassabis Interview

The Man Behind Google's AI Machine | Demis Hassabis Interview

Write Better Tests with the Screenplay Pattern

Write Better Tests with the Screenplay Pattern

Смог ли ИИ сделать удобную вещь? Проверяю на 3D принтере

Смог ли ИИ сделать удобную вещь? Проверяю на 3D принтере

Рефакторинг для упрощения

Рефакторинг для упрощения

Microsoft begs for mercy

Microsoft begs for mercy

The Windows 11 Disaster That's Killing Microsoft

The Windows 11 Disaster That's Killing Microsoft

Given When Then - Refactoring to a Kotlin DSL

Given When Then - Refactoring to a Kotlin DSL

Meta убила VR?

Meta убила VR?

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com