Skip to content

Instantly share code, notes, and snippets.

View inl1ne's full-sized avatar

Ian Ni-Lewis inl1ne

  • Google
  • United States
View GitHub Profile
@inl1ne
inl1ne / gist:577296bdb4d8ffa16ff5
Last active August 29, 2015 14:23
A pseudocode explanation of why class instance counting is slow on Android Lollipop
// StrictMode.conditionallyCheckInstanceCounts
force_garbage_collection // because I don’t trust VMDebug to get this right
foreach(c in classes) {
// VMDebug.countInstancesofClass()
force_garbage_collection // because I don’t trust my caller to get this right
classes2.add(c)
// Heap::CountInstances
@inl1ne
inl1ne / designer.html
Created August 21, 2014 01:15
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<polymer-element name="drecognizer-bar">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 48px;