Skip to content

Instantly share code, notes, and snippets.

View randyhbh's full-sized avatar
🏠
Working from home

Randy Hector Bartumeu Huergo randyhbh

🏠
Working from home
  • Hamburg, Germany
View GitHub Profile
@randyhbh
randyhbh / buttonAnimationExtension.swift
Created October 16, 2017 00:28 — forked from SAllen0400/buttonAnimationExtension.swift
Core Animation on UIButton Example
// Swift 3
extension UIButton {
func pulsate() {
let pulse = CASpringAnimation(keyPath: "transform.scale")
pulse.duration = 0.6
pulse.fromValue = 0.95
pulse.toValue = 1.0
@randyhbh
randyhbh / startup.md
Created October 30, 2023 07:41 — forked from dsyer/startup.md
Notes on Spring Boot startup performance

Anatomy of Spring Boot Start Up Timing

When a Spring Boot app starts up with default (INFO) logging, there are some noticeable gaps (pauses). It's worth focusing on the gaps when looking for efficiency savings because of the amount of time they take, and because no-one bothered to log anything, so the chances are the app is doing something repetitive. We can tweak the logging levels to try and fill in the gaps and find out what is going on in there.

Basic empty web app with actuators has three such gaps:

0                                                                        1410ms
|------|---------------------------|-----|------|---------|--------|--------|
       |           578             |     |144(5)|         | 133(6) |