Skip to content

Instantly share code, notes, and snippets.

@pomponchik
pomponchik / config.log
Created May 29, 2023 12:33
Result of "pyenv install 3.10"
This file has been truncated, but you can view the full file.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by python configure 3.10, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/Users/pomponchik/.pyenv/versions/3.10.11 --enable-shared --libdir=/Users/pomponchik/.pyenv/versions/3.10.11/lib --with-openssl=/usr/local/opt/openssl@1.1 --with-tcltk-libs=-L/usr/local/opt/tcl-tk/lib -ltcl8.6 -ltk8.6 --with-tcltk-includes=-I/usr/local/opt/tcl-tk/include
## --------- ##
@pomponchik
pomponchik / trace.log
Created May 29, 2023 12:29
Result of "pyenv install 3.10"
This file has been truncated, but you can view the full file.
+(/Users/pomponchik/.pyenv/bin/pyenv:23): enable -f /Users/pomponchik/.pyenv/bin/../libexec/pyenv-realpath.dylib realpath
+(/Users/pomponchik/.pyenv/bin/pyenv:30): '[' -z '' ']'
++(/Users/pomponchik/.pyenv/bin/pyenv:32): type -P readlink
+(/Users/pomponchik/.pyenv/bin/pyenv:32): READLINK=/usr/bin/readlink
+(/Users/pomponchik/.pyenv/bin/pyenv:33): '[' -n /usr/bin/readlink ']'
+(/Users/pomponchik/.pyenv/bin/pyenv:58): '[' -z /Users/pomponchik/.pyenv ']'
+(/Users/pomponchik/.pyenv/bin/pyenv:61): PYENV_ROOT=/Users/pomponchik/.pyenv
+(/Users/pomponchik/.pyenv/bin/pyenv:63): export PYENV_ROOT
+(/Users/pomponchik/.pyenv/bin/pyenv:65): '[' -z '' ']'
@pomponchik
pomponchik / gist:ed33d6093597489143e4e4ed6c265082
Created April 26, 2022 21:19
Пробуем ускорить вывод с помощью собственного постраничного кэширования
from collections import deque
from threading import Lock, Thread
from sys import argv
from time import time
from concurrent.futures import ThreadPoolExecutor
class Outer:
def __init__(self, filename):
self.file = open(filename, 'ab')