Skip to content

Instantly share code, notes, and snippets.

View peernohell's full-sized avatar
😁

Francois peernohell

😁
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
svg:not(:root).svg-inline--fa {
overflow: visible
}
@peernohell
peernohell / test.js
Created October 6, 2018 08:12
mailsplit issue rfc822 header only
'use strict';
const Splitter = require('./lib/message-splitter');
const Transform = require('stream').Transform;
class MailParser extends Transform {
constructor(config) {
let options = {
const { fabric } = require('fabric');
const fs = require('fs');
// OK
let loop1 = 100;
let loop2 = 0;
// Leak
loop1 = 1;
loop2 = 100;
@peernohell
peernohell / index.js
Created March 21, 2018 17:19
leak in fabric when a big canvas with one little image.
const { fabric } = require('fabric');
// const m = () => process.memoryUsage();
const m = () => (process.memoryUsage().rss / 1000000 | 0);
console.log('START ', m());
for (let i = 0; i < 3; i++) {
const canvas = new fabric.StaticCanvas();
canvas.setWidth(10000);
@peernohell
peernohell / index.js
Last active March 21, 2018 17:54
leak in fabric when a big canvas with one little image.
const { fabric } = require('fabric');
// const m = () => process.memoryUsage();
const m = () => (process.memoryUsage().rss / 1000000 | 0);
console.log('START ', m());
for (let i = 0; i < 3; i++) {
const canvas = new fabric.StaticCanvas();
canvas.setWidth(10000);
@peernohell
peernohell / index.js
Created March 21, 2018 17:19
leak in fabric when a big canvas with one little image.
const { fabric } = require('fabric');
// const m = () => process.memoryUsage();
const m = () => (process.memoryUsage().rss / 1000000 | 0);
console.log('START ', m());
for (let i = 0; i < 3; i++) {
const canvas = new fabric.StaticCanvas();
canvas.setWidth(10000);

Keybase proof

I hereby claim:

  • I am peernohell on github.
  • I am peernohell (https://keybase.io/peernohell) on keybase.
  • I have a public key whose fingerprint is 1C9B 8667 9786 927A 800B 5101 3157 DAC7 045D DF11

To claim this, I am signing this object: