Open in app

Sign in

Write

Sign in

Dmitry Komanov
Dmitry Komanov

274 Followers

Home

About

Sep 12

Optimizing Performance of Simple Version Parsing in Scala

For some time I wanted to write a blog post about performance optimizations: a step by step guide how to improve performance of some small portion of code. Something like I did in the past — Micro-optimization for UUID.fromString in 7 steps. …

Java

13 min read

Optimizing Performance of Simple Version Parsing in Scala
Optimizing Performance of Simple Version Parsing in Scala
Java

13 min read


Published in

Wix Engineering

·Feb 5

MySQL BLOB Fetch Performance in Java

What’s the best way to store binary data in MySQL? This is a question that has multiple answers, depending on what you want to achieve. For example, if you need to optimize for the storage size, you probably need to use some compression algorithm that compresses your data efficiently. …

Performance

8 min read

MySQL BLOB Fetch Performance in Java
MySQL BLOB Fetch Performance in Java
Performance

8 min read


Jan 10

Java Compression Performance

Data compression is a very broad topic, we may find lots of materials on this topic on Internet. There are amazing benchmarks for all kinds of compression algorithms. Benchmarks (1 2 3) for Java exist, but it seems to be a little bit outdated (not using JMH, for example) as…

Java

7 min read

Java Compression Performance
Java Compression Performance
Java

7 min read


Published in

Wix Engineering

·Oct 27, 2022

Java: Exploring JNI performance via Decoding Base64

It’s time to consolidate my Base64 findings: take the best of JVM world, the best of Rust world and benchmark it together from within the JVM. In this article I’m going to benchmark Base64 encoding/decoding performance of java.util.Base64 versus base64 and base64-simd crates via JNI. …

Java

8 min read

A Java: Exploring JNI performance via Decoding Base64
A Java: Exploring JNI performance via Decoding Base64
Java

8 min read


Oct 22, 2022

Java Native Access Performance

This is a remake of java-native-benchmark: performance benchmark of different ways (libraries) of using native libraries. The original benchmark was created for Windows, and I’m more interested in Linux. …

Java

2 min read

Java Native Access Performance
Java Native Access Performance
Java

2 min read


Oct 16, 2022

Base64 Encoding Performance: Java vs Rust

UPD: A lot of interesting comments on reddit: Added benchmarks for data-encoding crate. Added an optimized version of JDK ported implementation that brings Rust closer to JVM for encoding. WOW. Merged PR using base64-simd crate, which performance is almost 10x better than anything else! Blog post remains the same, if…

Rust

4 min read

Base64 Encoding Performance: Java vs Rust
Base64 Encoding Performance: Java vs Rust
Rust

4 min read


Sep 24, 2022

Base64 Encoding Performance: JDK vs Apache Commons

Recently I stumbled upon some old code that used Base64 from Apache Commons. So I decided to compare its performance to java.util.Base64. It’s not a new topic whatsoever (links at the end), so let’s just jump to benchmark results. Benchmarks Performance for encoding 10K characters for different JDKs. java.util.Base64 …

Java

2 min read

Base64 Encoding Performance: JDK vs Apache Commons
Base64 Encoding Performance: JDK vs Apache Commons
Java

2 min read


Sep 7, 2022

Replacing HashMap with Off-Heap HashMap in Java?

Wow, that’s the fifth (and I hope that last, famous last words) episode in my series “Benchmarking something that almost no one needs” :) I explored performance of java.util.HashMap vs scala.Map, and then tried to replace HashSet with sorted array and binary search, also storing this array off-heap. …

Java

5 min read

Replacing HashMap with Off-Heap HashMap in Java?
Replacing HashMap with Off-Heap HashMap in Java?
Java

5 min read


Sep 5, 2022

MySQL as Redis vs Redis?

This is the next portion of my “research” around my UUID set cache. I’ve benchmarked Map Performance Java vs Scala, binary search instead of HashSet and even moving Set cache to Redis. Now it’s time to benchmark MySQL as such cache. This is a silly benchmark, I know. But just…

Java

4 min read

MySQL as Redis vs Redis?
MySQL as Redis vs Redis?
Java

4 min read


Sep 1, 2022

Ultimate Off-Heap Hash Set: Using Redis

After my post about making off-heap Set-like data structure, my friend threw an idea at me: why not to go all the way, and use not just off-heap, but off-process? Why not to try to use Redis as a side-car and have caches there? Indeed, why not to try? I…

Redis

5 min read

Ultimate Off-Heap Hash Set: Using Redis
Ultimate Off-Heap Hash Set: Using Redis
Redis

5 min read

Dmitry Komanov

Dmitry Komanov

274 Followers

Software developer, moved to Israel from Russia, trying to be aware of things.

Following
  • torrito

    torrito

  • Stas Olekhnovich

    Stas Olekhnovich

  • Kostya Gorsky

    Kostya Gorsky

  • stepancheg

    stepancheg

  • Orr Sella

    Orr Sella

See all (20)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams