<commit_before>---
layout: post
title:  "How I spent two weeks hunting memory leak in Ruby"
date:   2015-09-21 19:00:00
comments: true
excerpt: This is a story about hunting memory leak. A long story, because I go into much detail…
---

# Foreword

This is a story about hunting memory leak. A long story, because I go into much
detail.

Why describe my adventures? Not that I wanted to save all those
tiny code pieces and scripts only. It rather occurred to me that it
was _UNIX way_ which I had pursued. Every step was related to yet another small utility,
or a library, which solves its task well. And finally I succeeded.

Also it was an interesting journey! Sometimes I got in and out of bed with
thoughts about what happens to memory.

I am grateful to my colleagues in [Shuttlerock](https://www.shuttlerock.com/)
company which actually _worked_ (as in "being productive for customers"), while I<commit_msg>Add link to orig. version of leak post<commit_after>---
layout: post
title:  "How I spent two weeks hunting memory leak in Ruby"
date:   2015-09-21 19:00:00
comments: true
excerpt: This is a story about hunting memory leak. A long story, because I go into much detail…
---

_(This post was translated, the [original version](http://be9.ru/2015/09/12/memory-leak.html)
is in my [Russian blog](http://be9.ru).)_

# Foreword

This is a story about hunting memory leak. A long story, because I go into much
detail.

Why describe my adventures? Not that I wanted to save all those
tiny code pieces and scripts only. It rather occurred to me that it
was _UNIX way_ which I had pursued. Every step was related to yet another small utility,
or a library, which solves its task well. And finally I succeeded.

Also it was an interesting journey! Sometimes I got in and out of bed with
thoughts about what happens to memory.

I am grateful to my colleagues in [Shuttlerock](https://www.shuttlerock.com/)
company which actually _worked_ (as in "being productive for customers"), while I
{'fraction_non_alphanumeric': 0.06488933601609657, 'fraction_numerical': 0.019114688128772636, 'mean_word_length': 4.061068702290076, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2477091', 'n_tokens_mistral': 574, 'n_tokens_neox': 537, 'n_words': 316}