Skip to content

Instantly share code, notes, and snippets.

View ikostia's full-sized avatar

Kostia Balytskyi ikostia

View GitHub Profile
#! /usr/bin/python
import os, sys
import heapq
class ExternalSorter(object):
CHUNK_SIZE = 10*1000*1000
CHUNK_FILE_NAME = "chunks/chunk.%.5i.txt"
ikostia / 1.html
Last active December 19, 2015 08:29
HTML page for comparison of Safari performance on sorting native arrays and jQuery sets.
<script type="text/javascript" src=""></script>
<script type="text/javascript">
function compare(a, b) {
if (a.text() < b.text()) return -1;
if (a.text() > b.text()) return 1;
return 0;
function sortArray(a) {
ikostia /
Created March 29, 2018 12:55
C/C++ dependency traverser
from __future__ import print_function
import os
import sys
import argparse
import re
from collections import defaultdict
sourceexts = ['.c', '.cpp', '.h', '.hpp', '.cc']