My thoughts on real time full-text search

Marek Majkowski wrote “Usually, search engines can look through data outdated by a few days. But Twitter search seems to be returning real time search results. That’s why it’s interesting how it works. In this post I’ll present a short introduction to full-text search engines and my private thoughts about a possible implementation of a better one. Let’s…”

Asynchronous libraries performance

Marek Majkowski wrote “Recently I found some pretty libevent benchmarks. For me they show terrifying results. The blood freezing fact is that the more connections you have, the bigger is the cost of adding new connections to asynchronous loop. It means that if you have 1 connection registered to asynchronous loop, the cost of registering callback would be…”

By Alias 0591 from the Netherlands (Snake Uploaded by russavia) [CC-BY-2.0 (], via Wikimedia Commons

Tracing Python memory leaks

Marek Majkowski wrote “While I was writing a python daemon, I noticed that my application process memory usage is growing over time. The data wasn’t increasing so there must have been some memory leak. It’s not so easy for a Python application to leak memory. Usually there are three scenarios: some low level C library is leaking your…”

Simple inter-process locks

Marek Majkowski wrote “I recently faced a very common problem, how to make sure that only one instance of my program is running at a time on the host. There are a lot of approaches that can be taken to solve this problem, but I needed a portable solution for Python. My first idea was to use widely…”