Skip to content

Instantly share code, notes, and snippets.

View annulen's full-sized avatar

Konstantin Tokarev annulen

  • Department of Chemistry, Moscow State University
  • Moscow, Russia
  • 06:44 (UTC +03:00)
View GitHub Profile
name: Build qbat2-deps
on:
push:
branches:
- build_dependencies_docker
env:
IMAGE_NAME: qbat2-deps
@annulen
annulen / HOWTO disable hyper-threading
Last active October 1, 2020 11:48
How to disable hyper-threading with only SSH access
Note that it's probably a bad idea to do this; I've resorted to this evil because of suspicion about CPU being defective or physically damaged.
./cpu_topology.sh - lists what virtual cores correspond to the same physical core
You need to adjust other scripts according to ./cpu_topology.sh results, they are given for typical 4 cores with HT case
+ export GIT_TRACE2_PERF=1
+ GIT_TRACE2_PERF=1
+ REPO=clone-1
+ time -p git clone --depth=1 --no-checkout git@github.com:qtwebkit/qtwebkit.git clone-1
04:45:21.005590 common-main.c:48 | d0 | main | version | | | | | 2.26.0
04:45:21.005619 common-main.c:49 | d0 | main | start | | 0.000252 | | | git clone --depth=1 --no-checkout git@github.com:qtwebkit/qtwebkit.git clone-1
04:45:21.005649 git.c:440 | d0 | main | cmd_name | | | | | clone (clone)
04:45:21.005738 repository.c:130 | d0 | main | def_repo | r1 | | | | worktree:/home/ktokarev/WebKit/clone-1
Cloning into 'clone-1'...
04:45:21.006966 run-command.c:735 | d0 | main | child_start | | 0.001599 | | | [ch0] class:t
+ export GIT_TRACE2_PERF=1
+ GIT_TRACE2_PERF=1
+ REPO=clone-2
+ time -p git clone --filter=blob:none --no-checkout git@github.com:qtwebkit/qtwebkit.git clone-2
04:37:03.085994 common-main.c:48 | d0 | main | version | | | | | 2.26.0
04:37:03.086022 common-main.c:49 | d0 | main | start | | 0.000220 | | | git clone --filter=blob:none --no-checkout git@github.com:qtwebkit/qtwebkit.git clone-2
04:37:03.086050 git.c:440 | d0 | main | cmd_name | | | | | clone (clone)
04:37:03.086143 repository.c:130 | d0 | main | def_repo | r1 | | | | worktree:/home/ktokarev/WebKit/clone-2
Cloning into 'clone-2'...
04:37:03.087490 run-command.c:735 | d0 | main | child_start | | 0.001687 | |

All measurements done with Git 2.26.0

1. Simple shallow clone with partial checkout

REPO="clone-1"
git clone --depth=1 --no-checkout git@github.com:qtwebkit/qtwebkit.git $REPO
cd $REPO
git sparse-checkout init
git sparse-checkout set '/*' '!LayoutTests'
diff --git a/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp b/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
index 423e5ca6da8..5872ffce9f5 100644
--- a/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
+++ b/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
@@ -641,21 +641,27 @@ void GraphicsContext::fillPath(const Path& path)
if (hasShadow()) {
if (mustUseShadowBlur() || m_state.fillPattern || m_state.fillGradient)
{
- ShadowBlur shadow(m_state);
- GraphicsContext* shadowContext = shadow.beginShadowLayer(*this, platformPath.controlPointRect());
commit 7f75ee92f3b59de9f0ba95f6e740dacb2fbcf757
Author: commit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Mon Sep 4 10:50:58 2017 +0000
Source/JavaScriptCore:
[WebIDL] Unify and simplify EnableBySettings with the rest of the runtime settings
https://bugs.webkit.org/show_bug.cgi?id=176312
Patch by Sam Weinig <sam@webkit.org> on 2017-09-04
Reviewed by Darin Adler.
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
CMAKE_MAKEFILE_GENERATOR="ninja"
PYTHON_COMPAT=( python2_7 )
USE_RUBY="ruby20 ruby21 ruby22 ruby23 ruby24"
inherit check-reqs cmake-utils eutils flag-o-matic python-any-r1 ruby-single toolchain-funcs versionator
<style>
select { color: transparent; }
</style>
<select class="scope-radio-button-item-select">
<option value="computed">Styles Computed</option>
<option value="rules">Styles Rules</option>
<option value="visual">Styles Visual</option>
</select>
void GraphicsContext::drawLine(const FloatPoint& point1, const FloatPoint& point2)
{
if (paintingDisabled())
return;
if (strokeStyle() == NoStroke)
return;
if (isRecording()) {
m_displayListRecorder->drawLine(point1, point2);